From 613bdde233107a84958e5aa1174068f88728829a Mon Sep 17 00:00:00 2001 From: Kim Davies Date: Fri, 16 Aug 2024 13:44:50 -0700 Subject: [PATCH] Update regexp to move global flag to start of expression --- tools/idna-data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idna-data b/tools/idna-data index db7bd8e..74f708a 100755 --- a/tools/idna-data +++ b/tools/idna-data @@ -671,7 +671,7 @@ def main(): elif args.action == 'make-libdata': make_libdata(args, ucdata) else: - result = re.match(r'^(?i)(U\+|)(?P[0-9A-F]{4,6})$', args.action) + result = re.match(r'(?i)^(U\+|)(?P[0-9A-F]{4,6})$', args.action) if result: codepoint = int(result.group('cp'), 16) diagnose_codepoint(codepoint, args, ucdata)