Skip to content

[sgf-parsing] fix escaped characters#2181

Merged
cmccandless merged 1 commit into
exercism:masterfrom
yawpitch:fix-sgf-parsing
Feb 25, 2020
Merged

[sgf-parsing] fix escaped characters#2181
cmccandless merged 1 commit into
exercism:masterfrom
yawpitch:fix-sgf-parsing

Conversation

@yawpitch
Copy link
Copy Markdown
Contributor

Fixes issue with pytest throwing a warning on invalid escapes.

Closes #2176

Fixes issue with pytest throwing a warning on invalid escapes.

Closes #2176
Comment thread bin/generate_tests.py
u(?:[0-9A-Fa-f]{4}) # a 16-bit unicode char
| # OR
U(?:[0-9A-Fa-f]{8}) # a 32-bit unicode char
)""", flags=re.VERBOSE)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had no idea Python re allowed you to expand out a regex pattern like this with line comments and everything.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep ... good ol re.VERBOSE.

@cmccandless cmccandless merged commit 1192f53 into exercism:master Feb 25, 2020
@cmccandless cmccandless deleted the fix-sgf-parsing branch February 25, 2020 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sgf-parsing] fix escaped characters test

2 participants