Subject: | incorrect unescape behaviour |
Given the string "weekendje weg van €1000", js_escape returns
"weekendje%20weg%20van%20%u20AC1000"
Using this string in js_unescape, "%u20AC1000" is mistreated. Whereas
only the first 4 hex chars ("20AC") should be converted back,
js_unescape also wrongly includes the "1000" (because of a greedy regex).
I fixed this myself by making the regex less greedy, but thought I'd
pass my findings here too
Cheers