We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f7bd7b + 211b6e1 commit 5037b3eCopy full SHA for 5037b3e
README.md
@@ -102,4 +102,6 @@
102
103
source :: Regex -> String
104
105
+ split :: Regex -> String -> [String]
106
+
107
test :: Regex -> String -> Boolean
src/Data/String/Regex.purs
@@ -10,7 +10,8 @@ module Data.String.Regex (
10
match,
11
replace,
12
replace',
13
- search
+ search,
14
+ split
15
) where
16
17
import Data.String (indexOf)
@@ -116,3 +117,10 @@ foreign import search
116
117
\ return s.search(r);\
118
\ };\
119
\}" :: Regex -> String -> Number
120
121
+foreign import split
122
+ "function split(r) {\
123
+ \ return function(s) {\
124
+ \ return s.split(r);\
125
+ \ };\
126
+ \}" :: Regex -> String -> [String]
0 commit comments