Fix warning about possible future breakage

Incoming Unicode regular expressions allow brackets inside brackets, therefore POSIX semantics no longer apply. Python warns about possible future breakage, so add backslash escape to square bracket opening inside the character class.
This commit is contained in:
Sei Lisa 2022-12-12 16:32:14 +01:00
parent dc655e3501
commit 75b29c92ed
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
REGEX
[[,] [0-9]{7}\.[0-9]*
[\[,] [0-9]{7}\.[0-9]*

View file

@ -1,2 +1,2 @@
REGEX
[[,] [0-9]{8}\.[0-9]*
[\[,] [0-9]{8}\.[0-9]*