Fix gsub, add gsub/3 (fix #782)

This commit is contained in:
Nicolas Williams committed 2015-05-18 23:02:11 -05:00
1 parent cf1306f469
commit cbdaeb4062
3 files changed
+31 -18

No files matched your search

+4
View File
@@ -892,6 +892,10 @@ sub("^(?<head>.)"; "Head=\(.head) Tail=")
["a,b, c, d, e,f",", a,b, c, d, e,f, "]
["a,b:c:d:e,f",":a,b:c:d:e,f:"]
gsub("(?<d>\\d)"; ":\(.d);")
"a1b2"
"a:1;b:2;"
[.[] | scan(", ")]
["a,b, c, d, e,f",", a,b, c, d, e,f, "]
[", ",", ",", ",", ",", ",", ",", ",", "]