diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py
index ce29becc0..bd51b27ef 100755
--- a/scripts/asciidoc2html.py
+++ b/scripts/asciidoc2html.py
@@ -154,17 +154,17 @@ class AsciiDoc:
hidden = False
elif line == "The Compiler \n":
continue
- elif re.match(r'^:\w+:.*', line):
+ elif re.fullmatch(r':\w+:.*', line):
# asciidoc field
continue
if not found_title:
- if re.match(r'^=+$', line):
+ if re.fullmatch(r'=+', line):
line = line.replace('=', '-')
found_title = True
title = last_line.rstrip('\n') + " | qutebrowser\n"
title += "=" * (len(title) - 1)
- elif re.match(r'^= .+', line):
+ elif re.fullmatch(r'= .+', line):
line = '==' + line[1:]
found_title = True
title = last_line.rstrip('\n') + " | qutebrowser\n"
diff --git a/scripts/dev/run_vulture.py b/scripts/dev/run_vulture.py
index 9d21ad428..11cfce792 100755
--- a/scripts/dev/run_vulture.py
+++ b/scripts/dev/run_vulture.py
@@ -132,7 +132,7 @@ def filter_func(item):
True if the missing function should be filtered/ignored, False
otherwise.
"""
- return bool(re.match(r'[a-z]+[A-Z][a-zA-Z]+', item.name))
+ return bool(re.fullmatch(r'[a-z]+[A-Z][a-zA-Z]+', item.name))
def report(items):
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(?P[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: