Fix #600. Add regression test
This commit is contained in:
1 parent
89791a000b
commit
30e00820a7
2 files changed
+5
-3
No files matched your search
@@ -859,6 +859,10 @@ capture("(?<a>[a-z]+)-(?<n>[0-9]+)")
|
||||
["a,b, c, d, e,f", ", a,b, c, d, e,f, "]
|
||||
["a,b:c, d, e,f",":a,b, c, d, e,f, "]
|
||||
|
||||
sub("^(?<head>.)"; "Head=\(.head) Tail=")
|
||||
"abcdef"
|
||||
"Head=a Tail=bcdef"
|
||||
|
||||
[.[] | gsub(", "; ":")]
|
||||
["a,b, c, d, e,f",", a,b, c, d, e,f, "]
|
||||
["a,b:c:d:e,f",":a,b:c:d:e,f:"]
|
||||
|
||||
Reference in new issue
Block a user