from typing import Dict
import re


def get_current_zones(filename: str) -> Dict[str, str]:
    """Get dictionary of current zones and patterns"""
    res = {}
    try:
        for line in open(filename).readlines():
            if line.startswith("#"):
                continue
            if match := re.match(r"^add (\S+) (\w+)$", line.rstrip()):
                res[match.group(1).lower()] = match.group(2)
    except FileNotFoundError:
        pass
    return res