Skip to content

Conversation

@mgorny
Copy link
Collaborator

@mgorny mgorny commented Apr 22, 2025

Use re.fullmatch() (and the equivalents) to match the whole string
against the regular expression, rather than explicit ^ and $.
This has the same result, but at the same time makes the regular
expression patterns reusable without having to strip these symbols.

mgorny added 2 commits April 22, 2025 17:02
Use `re.fullmatch()` (and the equivalents) to match the whole string
against the regular expression, rather than explicit `^` and `$`.
This has the same result, but at the same time makes the regular
expression patterns reusable without having to strip these symbols.
Copy link
Member

@DEKHTIARJonathan DEKHTIARJonathan left a comment

Choose a reason for hiding this comment

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

LGTM

@DEKHTIARJonathan DEKHTIARJonathan merged commit 03b6cd6 into main Apr 22, 2025
44 checks passed
@DEKHTIARJonathan DEKHTIARJonathan deleted the re-fullmatch branch April 22, 2025 21:28
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.

3 participants