Skip to content

Commit

Permalink
pgn: Support all valid symbol continuation characters in tag names
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 authored and niklasf committed Jun 23, 2022
1 parent 3c902fd commit e88f28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chess/pgn.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
NAG_NOVELTY = 146


TAG_REGEX = re.compile(r"^\[([A-Za-z0-9_]+)\s+\"([^\r]*)\"\]\s*$")
TAG_REGEX = re.compile(r"^\[([A-Za-z0-9_+#=:-]+)\s+\"([^\r]*)\"\]\s*$")

TAG_NAME_REGEX = re.compile(r"^[A-Za-z0-9_]+\Z")
TAG_NAME_REGEX = re.compile(r"^[A-Za-z0-9_+#=:-]+\Z")

MOVETEXT_REGEX = re.compile(r"""
(
Expand Down

0 comments on commit e88f28a

Please sign in to comment.