You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ‘match’ argument provided by String#replace (when given a function)
is often irrelevant. If one does require access to the matched substring
as a whole, one can parenthesize the whole pattern to capture it.
Copy file name to clipboardExpand all lines: src/Data/String/Regex.purs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -104,15 +104,15 @@ foreign import _replaceBy
104
104
:: (forallr. r->Mayber)
105
105
-> (forallr. Mayber)
106
106
->Regex
107
-
-> (String->Array (MaybeString) ->String)
107
+
-> (Array (MaybeString) ->String)
108
108
->String
109
109
->String
110
110
111
-
-- | Transforms occurrences of the `Regex` using a function of the matched
112
-
-- | substring and a list of captured substrings of type `Maybe String`,
113
-
-- | where `Nothing` represents an unmatched optional capturing group.
111
+
-- | Transforms occurrences of the `Regex` using a function of
112
+
-- | a list of captured substrings of type `Maybe String`, where
113
+
-- | `Nothing` represents an unmatched optional capturing group.
114
114
-- | See the [reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_function_as_a_parameter).
0 commit comments