diff options
author | George Edward Bulmer <gebulmer@googlemail.com> | 2017-12-11 23:06:52 +0000 |
---|---|---|
committer | George Edward Bulmer <gebulmer@googlemail.com> | 2017-12-11 23:06:52 +0000 |
commit | f74832328f23fa71e73067e086887bb14cf0ae65 (patch) | |
tree | 6922bcda9a7080e07e9a758a591f17c3828834f0 /scripts/dictcli.py | |
parent | 747a9bc5b6dfc566c02e4616e5a3002dbe42a95f (diff) | |
download | qutebrowser-f74832328f23fa71e73067e086887bb14cf0ae65.tar.gz qutebrowser-f74832328f23fa71e73067e086887bb14cf0ae65.zip |
Modify re.match usage in scripts directory.
Diffstat (limited to 'scripts/dictcli.py')
-rwxr-xr-x | scripts/dictcli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dictcli.py b/scripts/dictcli.py index 2742de8ad..98754d628 100755 --- a/scripts/dictcli.py +++ b/scripts/dictcli.py @@ -142,7 +142,7 @@ def parse_entry(entry): dict_re = re.compile(r""" (?P<filename>(?P<code>[a-z]{2}(-[A-Z]{2})?).*)\.bdic """, re.VERBOSE) - match = dict_re.match(entry['name']) + match = dict_re.fullmatch(entry['name']) if match is not None: return match.group('code'), match.group('filename') else: |