Skip to content

Commit 5c5235c

Browse files
committed
Fix regex syntax #2686
This was triggering a FutureWarning Reported-by: Thorsten Godau @tgodau Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent d449c3a commit 5c5235c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cluecode/copyrights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ def from_node(
15901590
(r'^[A-Z]+[.][A-Z][a-z]+[,]?$', 'NNP'),
15911591

15921592
# proper noun with apostrophe ': D'Orleans, D'Arcy, T'so, Ts'o
1593-
(r"^[A-Z][[a-z]?['][A-Z]?[a-z]+[,.]?$", 'NNP'),
1593+
(r"^[A-Z][a-z]?['][A-Z]?[a-z]+[,.]?$", 'NNP'),
15941594

15951595
# proper noun with apostrophe ': d'Itri
15961596
(r"^[a-z]['][A-Z]?[a-z]+[,\.]?$", 'NNP'),

0 commit comments

Comments
 (0)