Description
Version
18.13.0
Platform
N/A
Subsystem
No response
What steps will reproduce the bug?
Related #45171. The whitespace before AM
/PM
in a time is now U+202F rather than a space character.
How often does it reproduce? Is there a required condition?
100% reproduction on the affected Node versions
What is the expected behavior?
Same behavior as previous. A space character to separate instead of unicode whitespace.
What do you see instead?
A NARROW NO-BREAK SPACE (U+202f) character instead of a space character.
Additional information
This is a breaking change, especially for automated tests. Upon upgrading to 18.13 our CI builds started to fail when asserting that a datetime string was what we expected. We eventually tracked this down to the change mentioned above. I understand the change itself isn't a bug, but the introduction of this in a minor LTS version seems like a bug.
While it's partially user error for many cases of misusing these formatted strings, it's unexpected for this to change in a minor version and a very difficult problem to track down.