Skip to content

Commit d5f64c7

Browse files
committed
Fix placeholders validation
1 parent a766650 commit d5f64c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22

33
BRACES_PLACEHOLDER_REGEX = re.compile(r"(?:(?<=[^{])|^)\{(\d+)\}")
4-
PERCENT_PLACEHOLDER_REGEX = re.compile(r"(?:(?<=[^%])|^)%(\d+)")
4+
PERCENT_PLACEHOLDER_REGEX = re.compile(r"(?:(?<!\\%)|^)%(\d+)")
55

66
RESX_FILE_REGEX = re.compile(r"^(.*?)((?<=\.)[a-z]{2})?\.resx$")
77
PO_FILE_REGEX = re.compile(r"^[a-z]{2}.po$")

0 commit comments

Comments
 (0)