fix receiver regex (#2090)

Signed-off-by: m-masataka <m.mizukoshi.wakuwaku@gmail.com>
This commit is contained in:
masataka 2020-02-19 01:24:05 +09:00 committed by GitHub
parent cad963d8a8
commit 443fdb0b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -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