Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(dateparser): enforce order of regex construction #4810

Closed
wants to merge 1 commit into from

Conversation

wesleycho
Copy link
Contributor

  • Change formatCodeToRegex into an array to avoid potential iteration bug where the order the keys are listed in the object matters in the iteration order

This fixes #4808.

- Change `formatCodeToRegex` into an array to avoid potential iteration bug where the order the keys are listed in the object matters in the iteration order
@Foxandxss
Copy link
Contributor

Better. Merge it.

@wesleycho wesleycho closed this in 83d1435 Nov 2, 2015
@wesleycho wesleycho deleted the fix/dateparser-order branch November 2, 2015 23:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dateparser is highly reliant on regex definition order
2 participants