avm1: Unescape + to space

This commit is contained in:
nosamu 2023-08-22 04:01:29 -05:00 committed by Nathan Adams
parent 991976e437
commit 2f40f0093a
4 changed files with 7 additions and 0 deletions

View File

@ -448,6 +448,9 @@ pub fn unescape<'gc>(
remain = 0; remain = 0;
hex_chars.clear(); hex_chars.clear();
} }
b'+' => {
out_bytes.push(b' ');
}
_ => { _ => {
out_bytes.push(c); out_bytes.push(c);
} }

View File

@ -6,6 +6,10 @@ unescape("%40%2a%5f%2b%2d%2e%2f")
@*_+-./ @*_+-./
unescape("%20") unescape("%20")
unescape("Hello+World")
Hello World
unescape("One%20+mo%2+re")
One moe
unescape("%C4%80%E3%81%82") unescape("%C4%80%E3%81%82")
Āあ Āあ
unescape("Āあ") unescape("Āあ")