Skip to content

[models.py] Improve RegExes#8

Draft
Olf0 wants to merge 5 commits intoCODeRUS:masterfrom
sailfishos-patches:Olf0-patch-2
Draft

[models.py] Improve RegExes#8
Olf0 wants to merge 5 commits intoCODeRUS:masterfrom
sailfishos-patches:Olf0-patch-2

Conversation

@Olf0
Copy link
Contributor

@Olf0 Olf0 commented Jul 30, 2022

Olf0 added 3 commits July 31, 2022 00:06
because `re.match` implicitly searches at the beginning of a string, but making this explicit by maintaining the RegExes to start with "^" and using `re.search` instead enhances legibility.

Reference: https://docs.python.org/3/library/re.html#search-vs-match
@Olf0 Olf0 changed the title [models.py] Improve RegEx for project names [models.py] Improve RegExes Jul 30, 2022
@Olf0 Olf0 marked this pull request as draft February 6, 2023 01:01
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.

1 participant