Skip to content

Commit 73aec31

Browse files
committed
fix snippet in README
1 parent 6529fd3 commit 73aec31

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,22 @@ API 设计: https://github.com/calcit-lang/calcit_runner.rs/discussions/116 .
99
APIs:
1010

1111
```cirru
12-
calcit.std.regex/re-matches |2 |\d
12+
regex.core/re-matches |2 |\d
1313
; "returns bool"
1414
1515
; "find first matched item"
16-
calcit.std.regex/re-find |a4 |\d
17-
calcit.std.regex/re-find-index |a1 |\d
16+
regex.core/re-find |a4 |\d
17+
regex.core/re-find-index |a1 |\d
1818
19-
calcit.std.regex/re-find-all |123 |\d+
19+
regex.core/re-find-all |123 |\d+
2020
2121
22-
assert= |1abXcX3 $ re-replace-all |1ab22c333 |\d{2} "\"X"
22+
regex.core/re-replace-all |1ab22c333 |\d{2} "\"X"
23+
; |1abXcX3
2324
24-
assert= ([] "\"1ab" "\"c" "\"3") $ re-split |1ab22c333 |\d{2}
25+
26+
regex.core/re-split |1ab22c333 |\d{2}
27+
; [] "\"1ab" "\"c" "\"3"
2528
```
2629

2730
Install to `~/.config/calcit/modules/`, compile and provide `*.{dylib,so}` file with `./build.sh`.

0 commit comments

Comments
 (0)