fix: more strict delimiter in REGEX_PARSE - #1555
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #1555 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 176 176
Lines 1980 1980
Branches 502 502
=========================================
Hits 1980 1980
Continue to review full report at Codecov.
|
iamkun
reviewed
Jun 29, 2021
|
|
||
| // regex | ||
| export const REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/ | ||
| export const REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/ |
Contributor
Author
There was a problem hiding this comment.
is T is enough? I searched some regex for ISO8601 format and they were using Tt instead of T. I guess thats for some compatibility of some OS or libraries.
iamkun
pushed a commit
that referenced
this pull request
Jul 6, 2021
## [1.10.6](v1.10.5...v1.10.6) (2021-07-06) ### Bug Fixes * add invalid date string override ([#1465](#1465)) ([#1470](#1470)) ([06f88f4](06f88f4)) * add sv-fi Finland Swedish locale ([#1522](#1522)) ([8e32164](8e32164)) * customParseFormat support parsing X x timestamp ([#1567](#1567)) ([eb087f5](eb087f5)) * dayjs ConfigTypeMap add null & undefined ([#1560](#1560)) ([b5e40e6](b5e40e6)) * Fix DayOfYear plugin when using BadMutable plugin ([#1511](#1511)) ([0b0c6a3](0b0c6a3)) * Implement ordinal in Bulgarian translation (fixes [#1501](#1501)) ([#1502](#1502)) ([b728da5](b728da5)) * more strict delimiter in REGEX_PARSE ([#1555](#1555)) ([bfdab5c](bfdab5c)) * parameter type ([#1549](#1549)) ([f369844](f369844)) * update customParseFormat plugin to custom two-digit year parse function ([#1421](#1421)) ([bb5df55](bb5df55)) * update names of weekdays and months in Bulgarian [bg] to lowercase ([#1438](#1438)) ([b246210](b246210)) * update type file `.diff` ([#1505](#1505)) ([6508494](6508494)) * update UTC plugin type file for strict parsing ([#1443](#1443)) ([b4f28df](b4f28df))
Owner
|
🎉 This PR is included in version 1.10.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
andrewhood125ruhuc
added a commit
to andrewhood125ruhuc/SidRH2
that referenced
this pull request
May 10, 2022
## [1.10.6](iamkun/dayjs@v1.10.5...v1.10.6) (2021-07-06) ### Bug Fixes * add invalid date string override ([#1465](iamkun/dayjs#1465)) ([#1470](iamkun/dayjs#1470)) ([06f88f4](iamkun/dayjs@06f88f4)) * add sv-fi Finland Swedish locale ([#1522](iamkun/dayjs#1522)) ([8e32164](iamkun/dayjs@8e32164)) * customParseFormat support parsing X x timestamp ([#1567](iamkun/dayjs#1567)) ([eb087f5](iamkun/dayjs@eb087f5)) * dayjs ConfigTypeMap add null & undefined ([#1560](iamkun/dayjs#1560)) ([b5e40e6](iamkun/dayjs@b5e40e6)) * Fix DayOfYear plugin when using BadMutable plugin ([#1511](iamkun/dayjs#1511)) ([0b0c6a3](iamkun/dayjs@0b0c6a3)) * Implement ordinal in Bulgarian translation (fixes [#1501](iamkun/dayjs#1501)) ([#1502](iamkun/dayjs#1502)) ([b728da5](iamkun/dayjs@b728da5)) * more strict delimiter in REGEX_PARSE ([#1555](iamkun/dayjs#1555)) ([bfdab5c](iamkun/dayjs@bfdab5c)) * parameter type ([#1549](iamkun/dayjs#1549)) ([f369844](iamkun/dayjs@f369844)) * update customParseFormat plugin to custom two-digit year parse function ([#1421](iamkun/dayjs#1421)) ([bb5df55](iamkun/dayjs@bb5df55)) * update names of weekdays and months in Bulgarian [bg] to lowercase ([#1438](iamkun/dayjs#1438)) ([b246210](iamkun/dayjs@b246210)) * update type file `.diff` ([#1505](iamkun/dayjs#1505)) ([6508494](iamkun/dayjs@6508494)) * update UTC plugin type file for strict parsing ([#1443](iamkun/dayjs#1443)) ([b4f28df](iamkun/dayjs@b4f28df))
andrewhood125ruhuc
added a commit
to andrewhood125ruhuc/SidRH2
that referenced
this pull request
May 10, 2022
## [1.10.6](iamkun/dayjs@v1.10.5...v1.10.6) (2021-07-06) ### Bug Fixes * add invalid date string override ([#1465](iamkun/dayjs#1465)) ([#1470](iamkun/dayjs#1470)) ([06f88f4](iamkun/dayjs@06f88f4)) * add sv-fi Finland Swedish locale ([#1522](iamkun/dayjs#1522)) ([8e32164](iamkun/dayjs@8e32164)) * customParseFormat support parsing X x timestamp ([#1567](iamkun/dayjs#1567)) ([eb087f5](iamkun/dayjs@eb087f5)) * dayjs ConfigTypeMap add null & undefined ([#1560](iamkun/dayjs#1560)) ([b5e40e6](iamkun/dayjs@b5e40e6)) * Fix DayOfYear plugin when using BadMutable plugin ([#1511](iamkun/dayjs#1511)) ([0b0c6a3](iamkun/dayjs@0b0c6a3)) * Implement ordinal in Bulgarian translation (fixes [#1501](iamkun/dayjs#1501)) ([#1502](iamkun/dayjs#1502)) ([b728da5](iamkun/dayjs@b728da5)) * more strict delimiter in REGEX_PARSE ([#1555](iamkun/dayjs#1555)) ([bfdab5c](iamkun/dayjs@bfdab5c)) * parameter type ([#1549](iamkun/dayjs#1549)) ([f369844](iamkun/dayjs@f369844)) * update customParseFormat plugin to custom two-digit year parse function ([#1421](iamkun/dayjs#1421)) ([bb5df55](iamkun/dayjs@bb5df55)) * update names of weekdays and months in Bulgarian [bg] to lowercase ([#1438](iamkun/dayjs#1438)) ([b246210](iamkun/dayjs@b246210)) * update type file `.diff` ([#1505](iamkun/dayjs#1505)) ([6508494](iamkun/dayjs@6508494)) * update UTC plugin type file for strict parsing ([#1443](iamkun/dayjs#1443)) ([b4f28df](iamkun/dayjs@b4f28df))
splashwizard
pushed a commit
to splashwizard/tracking-time
that referenced
this pull request
Oct 21, 2024
## [1.10.6](iamkun/dayjs@v1.10.5...v1.10.6) (2021-07-06) ### Bug Fixes * add invalid date string override ([#1465](iamkun/dayjs#1465)) ([#1470](iamkun/dayjs#1470)) ([06f88f4](iamkun/dayjs@06f88f4)) * add sv-fi Finland Swedish locale ([#1522](iamkun/dayjs#1522)) ([8e32164](iamkun/dayjs@8e32164)) * customParseFormat support parsing X x timestamp ([#1567](iamkun/dayjs#1567)) ([eb087f5](iamkun/dayjs@eb087f5)) * dayjs ConfigTypeMap add null & undefined ([#1560](iamkun/dayjs#1560)) ([b5e40e6](iamkun/dayjs@b5e40e6)) * Fix DayOfYear plugin when using BadMutable plugin ([#1511](iamkun/dayjs#1511)) ([0b0c6a3](iamkun/dayjs@0b0c6a3)) * Implement ordinal in Bulgarian translation (fixes [#1501](iamkun/dayjs#1501)) ([#1502](iamkun/dayjs#1502)) ([b728da5](iamkun/dayjs@b728da5)) * more strict delimiter in REGEX_PARSE ([#1555](iamkun/dayjs#1555)) ([bfdab5c](iamkun/dayjs@bfdab5c)) * parameter type ([#1549](iamkun/dayjs#1549)) ([f369844](iamkun/dayjs@f369844)) * update customParseFormat plugin to custom two-digit year parse function ([#1421](iamkun/dayjs#1421)) ([bb5df55](iamkun/dayjs@bb5df55)) * update names of weekdays and months in Bulgarian [bg] to lowercase ([#1438](iamkun/dayjs#1438)) ([b246210](iamkun/dayjs@b246210)) * update type file `.diff` ([#1505](iamkun/dayjs#1505)) ([6508494](iamkun/dayjs@6508494)) * update UTC plugin type file for strict parsing ([#1443](iamkun/dayjs#1443)) ([b4f28df](iamkun/dayjs@b4f28df))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolving #1554