Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -1,12 +1,16 @@
val finish = fn s:b2s(map(
less(split(s, delim="%"), of=1),
by=fn x:number(x, fmt=16),
))
val decode = fn s:replace(
s,
by=re/(%[0-9A-Fa-f]{2})+/,
with=finish,
)
val finish = fn(s) {
b2s(map(
less(split(s, delim="%"), of=1),
by=fn(x) { number x, fmt=16 },
))
}
val decode = fn(s) {
replace(
s,
by=re/(%[0-9A-Fa-f]{2})+/,
with=finish,
)
}
writeln decode("http%3A%2F%2Fno%20more%20foo%20bars%20please%2F")
writeln decode("google.com/search?q=%22unbroken%20string%22")