Skip to content

Allow Unicode minus sign (U+2212) in ISO 8601 strings#826

Merged
ptomato merged 1 commit intomainfrom
814-unicode-minus
Aug 24, 2020
Merged

Allow Unicode minus sign (U+2212) in ISO 8601 strings#826
ptomato merged 1 commit intomainfrom
814-unicode-minus

Conversation

@ptomato
Copy link
Copy Markdown
Collaborator

@ptomato ptomato commented Aug 15, 2020

Wherever a sign character is needed (in 6-digit extended years and in
time zone offsets), also accept the Unicode minus sign as well as the
normal ASCII + and -.

Closes: #814

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 15, 2020

Codecov Report

Merging #826 into main will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #826   +/-   ##
=======================================
  Coverage   92.38%   92.39%           
=======================================
  Files          17       17           
  Lines        4834     4839    +5     
  Branches      749      752    +3     
=======================================
+ Hits         4466     4471    +5     
  Misses        362      362           
  Partials        6        6           
Flag Coverage Δ
#test262 57.78% <80.00%> (-0.05%) ⬇️
#tests 87.09% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
polyfill/lib/ecmascript.mjs 94.88% <100.00%> (+0.01%) ⬆️
polyfill/lib/regex.mjs 100.00% <100.00%> (ø)
polyfill/lib/timezone.mjs 94.73% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd6b1f7...845dd3e. Read the comment docs.

@ptomato ptomato mentioned this pull request Aug 15, 2020
Copy link
Copy Markdown
Member

@ryzokuken ryzokuken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Wherever a sign character is needed (in 6-digit extended years and in
time zone offsets), also accept the Unicode minus sign as well as the
normal ASCII + and -.

Closes: #814
@ptomato ptomato force-pushed the 814-unicode-minus branch from 954a89d to 845dd3e Compare August 24, 2020 22:02
@ptomato
Copy link
Copy Markdown
Collaborator Author

ptomato commented Aug 24, 2020

Comments addressed, merging.

@ptomato ptomato merged commit c4d30c5 into main Aug 24, 2020
@ptomato ptomato deleted the 814-unicode-minus branch August 24, 2020 22:28
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.

Accept Unicode minus sign in negative durations and time zone offsets

2 participants