Skip to content

Commit 5629c8b

Browse files
committed
fix: remove extra [ in regex
causes FutureWarning: Possible nested set at position 16
1 parent 1bb670a commit 5629c8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/osw/utils/regex_pattern.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
REGEX_PATTERN_LIST = [
44
RegExPatternExtended(
55
description="File page full page title (new format) to label",
6-
pattern=r"File:(OS[WL]{1}[[a-f0-9]{32})"
6+
pattern=r"File:(OS[WL]{1}[a-f0-9]{32})"
77
r"(\.[a-zA-Z0-9]*[a-zA-Z]+[a-zA-Z0-9]*)",
88
group_keys=["Label", "Suffix(es)"], # ["OSW-ID", "Suffix(es)"]
99
example_str="File:OSW11a53cdfbdc24524bf8ac435cbf65d9d.svg",

0 commit comments

Comments
 (0)