commit | 35f01b1fbaf804ff52d9d286ebf172090710fafa | [log] [tgz] |
---|---|---|
author | energien <energien@adhara.uberspace.de> | Sat Oct 14 21:06:21 2017 +0200 |
committer | energien <energien@adhara.uberspace.de> | Sat Oct 14 21:06:21 2017 +0200 |
tree | 1f2d3ac95f64981884c3ebbae556589577d28a7f | |
parent | 9ce317e5acf4909aa31f1d7961130da12ac021d4 [diff] [blame] |
escape also special regex character ?
diff --git a/R/util.R b/R/util.R index f80c89a..fe058cf 100644 --- a/R/util.R +++ b/R/util.R
@@ -61,6 +61,7 @@ x <- gsub("\\}", "\\\\}", x) x <- gsub("\\*", "\\\\*", x) x <- gsub("\\+", "\\\\+", x) + x <- gsub("\\?", "\\\\?", x) return(x) }