fix receiver regex (#2090)
Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>
This commit is contained in:
parent
cad963d8a8
commit
443fdb0b36
File diff suppressed because one or more lines are too long
|
@ -38,7 +38,7 @@ escapeRegExp : String -> String
|
|||
escapeRegExp text =
|
||||
let
|
||||
reg =
|
||||
Regex.fromString "/[-[\\]{}()*+?.,\\\\^$|#\\s]/g" |> Maybe.withDefault Regex.never
|
||||
Regex.fromString "[-[\\]{}()*+?.,\\\\^$|#\\s]" |> Maybe.withDefault Regex.never
|
||||
in
|
||||
Regex.replace reg (.match >> (++) "\\") text
|
||||
|
||||
|
|
Loading…
Reference in New Issue