Skip to content

Improve ms_timeFormats regex for patterns ending in Z - #7716

Merged
jmckenna merged 1 commit into
MapServer:mainfrom
akrherz:gh7715_ms_timeformats_regex
Dec 2, 2026
Merged

jmckenna merged 1 commit into
MapServer:mainfrom
akrherz:gh7715_ms_timeformats_regex

Conversation

@akrherz

@akrherz akrherz commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

closes #7715

What does this PR do?

For specified ms_timeFormats regular expressions that end with Z, require the end of string match as well. This is a low risk change as a WMS client would never be providing content after the Z in the timestamp.

What are related issues/pull requests?

#7715 and c/f #7711

AI tool usage

None

Tasklist

  • Make sure code is correctly formatted (cf pre-commit configuration)
  • Add test case(s) in /msautotest (follow steps in Regression Testing)
  • Add documentation
  • Review
  • Adjust for comments
  • All CI builds and checks have passed

@jratike80

Copy link
Copy Markdown

as a WMS client would never be providing content after the Z in the timestamp

...and if it would, the content would not be a valid ISO time string.

@jmckenna jmckenna added the backport branch-8-6 To backport a pull request to branch-8-6 label Dec 2, 2026
@jmckenna

jmckenna commented Dec 2, 2026

Copy link
Copy Markdown
Member

thanks again @akrherz !

@jmckenna
jmckenna merged commit 3d93ab2 into MapServer:main Dec 2, 2026
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport branch-8-6 To backport a pull request to branch-8-6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ms_timeFormats ending with Z should have strict $ regex added

4 participants