fix: tap parser fails when test name includes non ASCII characters#45741
fix: tap parser fails when test name includes non ASCII characters#45741pulkit-30 wants to merge 2 commits intonodejs:mainfrom
Conversation
aduh95
left a comment
There was a problem hiding this comment.
Can you please add a test to validate this indeed fixes the bug?
|
|
||
| #isNonASCIISymbol(char) { | ||
| const ascii = /^[ -~]+$/; | ||
| return !ascii.test(char); |
There was a problem hiding this comment.
| return !ascii.test(char); | |
| return RegExpPrototypeExec(ascii, char) === null; |
Sure, Where should I add test ? |
|
|
@pulkit-30 FYI there is already an open PR fixing this issue #45736 |
ohh! I didn't notice that, should I close this PR? |
preferably, I see you found another
good first issue
|
fixes: #45706
fix: tap parser fails when test name includes non ASCII characters
check for non-ascii characters and return
trueif it is not.function to check for non-ASCII characters:
Example:
Testing:
Output: