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

Refactor: check if place holders in custom tms url contains any space within #281

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

Sujanadh
Copy link
Contributor

@Sujanadh Sujanadh commented Aug 5, 2024

Updates:

  • used pattern r"\{\s*[xyz]+\s*\}" to check if the place holders contains any space within
  • returns True if matches which aborts the background task to generate tiles with invalid tms
  • if no placeholders in url, the result will be False. So, pattern will search for spaces only if placeholders {z}/{x}/{y} are in url.

@spwoodcock spwoodcock merged commit b53be04 into main Aug 5, 2024
2 of 3 checks passed
@spwoodcock spwoodcock deleted the refactor/validate-custom-tms branch August 5, 2024 16:46
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.

2 participants