Skip to content

Commit 8d3ef69

Browse files
committed
Fix NO_COPY_REGEX: escape a literal .
1 parent ff30d9f commit 8d3ef69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nancy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
VERSION = importlib.metadata.version("nancy")
2121

2222
TEMPLATE_REGEX = re.compile(r"\.nancy(?=\.[^.]+$|$)")
23-
NO_COPY_REGEX = re.compile(r"\.in(?=\.(nancy.)?[^.]+$|$)")
23+
NO_COPY_REGEX = re.compile(r"\.in(?=\.(nancy\.)?[^.]+$|$)")
2424
MACRO_REGEX = re.compile(rb"(\\?)\$([^\W\d_]\w*)")
2525

2626

0 commit comments

Comments
 (0)