Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regex pattern to find spaces in placeholders of tms url #283

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

Sujanadh
Copy link
Contributor

@Sujanadh Sujanadh commented Aug 7, 2024

Updates:

  • refactored the regex pattern to search any spaces within placeholders in the tms url.
  • only checks for them if they are present in url.
  • pattern is r".*/\{[zxy]\}/\{[zxy]\}/\{[zxy]\}(?:/|/?)" which ensures placeholders without spaces for all possible combination of them, such as {z}{x}{y}, {x}{y}{z} etc.

@Sujanadh Sujanadh requested a review from spwoodcock August 7, 2024 04:37
@Sujanadh Sujanadh self-assigned this Aug 7, 2024
@github-actions github-actions bot added the bug Something isn't working label Aug 7, 2024
@spwoodcock spwoodcock merged commit 5c943e2 into main Aug 8, 2024
4 of 5 checks passed
@spwoodcock spwoodcock deleted the fix/regex-pattern branch August 8, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants