Visitar URL original
[bugfix] Reset locale parsing caches after updates by mattjohnsonpint · Pull Request #6436 · moment/moment · GitHub
Skip to content

[bugfix] Reset locale parsing caches after updates - #6436

Merged
mattjohnsonpint merged 1 commit into
developfrom
mjp/fix-6435-locale-parse-cache
Aug 23, 2026
Merged

mattjohnsonpint merged 1 commit into
developfrom
mjp/fix-6435-locale-parse-cache

Conversation

@mattjohnsonpint

Copy link
Copy Markdown
Contributor

Month and weekday parsing data is generated lazily and retained on the locale.
When repeated updateLocale calls update that locale in place, the generated
data can continue recognizing previous names while rejecting the updated names.

Clear generated month and weekday parsing state when locale configuration is
reapplied. Explicitly configured parse arrays and regular expressions remain
unchanged.

Fixes #6435.

Clear generated month and weekday parsing data when locale configuration is reapplied, while preserving explicitly configured parse arrays and regexes.\n\nFixes #6435
@mattjohnsonpint
mattjohnsonpint requested a review from a team as a code owner August 23, 2026 20:22
@mattjohnsonpint
mattjohnsonpint merged commit 4a5b290 into develop Aug 23, 2026
26 checks passed
@mattjohnsonpint
mattjohnsonpint deleted the mjp/fix-6435-locale-parse-cache branch August 23, 2026 20:24
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.

Repeated updateLocale calls leave month and weekday parsing stale

1 participant