We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0885075 commit 434b159Copy full SHA for 434b159
src/Data/String/Regex.purs
@@ -32,6 +32,17 @@ foreign import replace
32
\ };\
33
\}" :: Regex -> String -> String -> String
34
35
+foreign import replace'
36
+ "function replace$prime(r) {\
37
+ \ return function(f) {\
38
+ \ return function(s2) {\
39
+ \ return s2.replace(r, function (match) {\
40
+ \ return f(match)(Array.prototype.splice.call(arguments, 1, arguments.length - 3));\
41
+ \ });\
42
+ \ };\
43
44
+ \}" :: Regex -> (String -> [String] -> String) -> String -> String
45
+
46
foreign import search
47
"function search(r) {\
48
\ return function (s) {\
0 commit comments