summaryrefslogtreecommitdiff
path: root/scripts/dictcli.py
diff options
context:
space:
mode:
authorGeorge Edward Bulmer <gebulmer@googlemail.com>2017-12-11 23:06:52 +0000
committerGeorge Edward Bulmer <gebulmer@googlemail.com>2017-12-11 23:06:52 +0000
commitf74832328f23fa71e73067e086887bb14cf0ae65 (patch)
tree6922bcda9a7080e07e9a758a591f17c3828834f0 /scripts/dictcli.py
parent747a9bc5b6dfc566c02e4616e5a3002dbe42a95f (diff)
downloadqutebrowser-f74832328f23fa71e73067e086887bb14cf0ae65.tar.gz
qutebrowser-f74832328f23fa71e73067e086887bb14cf0ae65.zip
Modify re.match usage in scripts directory.
Diffstat (limited to 'scripts/dictcli.py')
-rwxr-xr-xscripts/dictcli.py2
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: