-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept Unicode minus sign in negative durations and time zone offsets #814
Comments
Merged
Note that this applies in two places: parsing UTC offsets and parsing negative durations. BTW, "unicode minus" is U+2212. |
Makes sense if it's in the spec. |
It also applies to negative 6-digit extended years. |
ptomato
added a commit
that referenced
this issue
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
I'll also tack this on to the negative durations pull request (#811). |
ptomato
added a commit
that referenced
this issue
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
ptomato
added a commit
that referenced
this issue
Aug 15, 2020
ptomato
added a commit
that referenced
this issue
Aug 24, 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
ptomato
added a commit
that referenced
this issue
Aug 24, 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
ptomato
added a commit
that referenced
this issue
Aug 24, 2020
ptomato
added a commit
that referenced
this issue
Aug 24, 2020
ptomato
added a commit
that referenced
this issue
Aug 25, 2020
ptomato
added a commit
that referenced
this issue
Aug 27, 2020
ptomato
added a commit
that referenced
this issue
Aug 28, 2020
ptomato
added a commit
that referenced
this issue
Sep 1, 2020
ptomato
added a commit
that referenced
this issue
Sep 1, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow up from #811 (comment)
From ISO 8601:
(ISO/IEC 646 is 7-bit ASCII. Certainly we should continue emitting ASCII-only strings for ease of interchange, but I think it would be OK to accept Unicode minus signs since JS is not limited to ASCII.)
The text was updated successfully, but these errors were encountered: