edtf.js icon indicating copy to clipboard operation
edtf.js copied to clipboard

Extended Date Time Format (ISO 8601-2 / EDTF) Parser for JavaScript

Results 13 edtf.js issues
Sort by recently updated
recently updated
newest added

My apologies, but I cannot tell if this is a problem with the configuration of my React application or the packaging of edtf.js. Using version 4.1.0 and 4.0.0, I get...

Here is my first suggestion draft to tackle issue #20 . All previous tests pass without any issues so it does not seem to be too breaking. ### What it...

(Sorry for spamming issues, I swear I'm actually trying to work on fixes ':D) Using v2.7.1 Since `X2` sets the inner date to February by default, any value for days...

Using v2.7.1. Creating another issue for this, since it happens regardless of the ["unspecified" value](https://github.com/inukshuk/edtf.js/issues/20) (currently scratching my head over it by the way): ``` > edtf('0000-02-29').edtf // expecting '0000-02-29'......

Using v2.7.1, here is another tricky corner case: ``` > edtf('21XX-02-29').edtf // expecting '21XX-02-29' '21XX-03-01' ``` Since *some* unspecified year components *can* match leap years, the library should not move...

`0011-21/0012-22` is not recognized by EDTF.js even though `0011-21` and `0012-22` are.

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @​mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @​OlafConijn in...

dependencies

First, thanks for this very useful library! Currently the code allows `18?` to represent "19th century, uncertain", but not `18XX?`, as exemplified in this [sandbox](https://codesandbox.io/s/elated-noyce-dp8d1b?file=/src/App.tsx). I can't really see `18XX?`...

The `format()` function throws a `TypeError` when passing in an interval. For example: ```js edtf.format(edtf.default('2000/2001')) ``` throws: > Uncaught TypeError: Cannot read properties of undefined (reading 'value') It might be...

When a date contains unspecified digits, the `format()` function produces all X’s. For example: ```js > edtf.format(edtf.default('XXXX-04-01')); // Expected: 4/1/X // Actual: 4/1/? > edtf.format(edtf.default('201X')); // Expected: 2010s // Actual:...