Issue #1300 fix: fuzzydate strict date option regex#2354
Issue #1300 fix: fuzzydate strict date option regex#2354nandanv2702 wants to merge 2 commits intoSheetJS:masterfrom
Conversation
|
ES6 issues aside (we are targeting ES3, so no const or default parameter values or arrow functions) two comments:
|
|
Hey! I'll work on the changes for the first point soon, but as for the second - what do you think of including an option similar to Alternatively, if What do you think? |
|
Just following up on my last comment - after reading #2196 and #1646, I think it might make more sense to make the following changes:
This can allow for stricter dates while also letting us switch I'm currently working on these changes, so let me know if this sounds good! |
f699120 to
ef6d308
Compare
Hey! This fix refers to issue #1300
I made changes to two of the files to include regex options to parse dates in the following formats:
All the aforementioned date formats use the separators
. or - or /, e.g.:This can be activated using the strictDate option in the fuzzydate function which is set to
falseby default.Let me know whether this solution is what you were looking for!