Skip to content

Commit

Permalink
Update regexp to move global flag to start of expression
Browse files Browse the repository at this point in the history
  • Loading branch information
kjd committed Aug 16, 2024
1 parent 0ab935a commit 613bdde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/idna-data
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def main():
elif args.action == 'make-libdata':
make_libdata(args, ucdata)
else:
result = re.match(r'^(?i)(U\+|)(?P<cp>[0-9A-F]{4,6})$', args.action)
result = re.match(r'(?i)^(U\+|)(?P<cp>[0-9A-F]{4,6})$', args.action)
if result:
codepoint = int(result.group('cp'), 16)
diagnose_codepoint(codepoint, args, ucdata)
Expand Down

0 comments on commit 613bdde

Please sign in to comment.