This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,6 @@
|
||||
# probe: does replace() on a String replace every occurrence, so a chain of them undoes percent escapes? (yes: %2520 becomes %20, not a space)
|
||||
# expect-stdout: x y%20
|
||||
# expect-stdout: z%
|
||||
def main():
|
||||
var s = String("x%20y%2520%0Az%25")
|
||||
print(s.replace("%20", " ").replace("%0A", "\n").replace("%0D", "\r").replace("%25", "%"))
|
||||
Reference in new issue
Block a user