From 64caf155434202abfda5909f07f5446124d5e970 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 16 May 2018 03:27:52 +0200 Subject: T643: use fullmatch for regex validators so that people don't have to write ^...$ all the time. --- src/helpers/validate-value.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/helpers/validate-value.py b/src/helpers/validate-value.py index e49bfb6f4..d702739b5 100755 --- a/src/helpers/validate-value.py +++ b/src/helpers/validate-value.py @@ -18,7 +18,7 @@ debug = False try: for r in args.regex: - if re.match(r, args.value): + if re.fullmatch(r, args.value): sys.exit(0) except Exception as exn: if debug: -- cgit v1.2.3