Commit dfc7b1f9 authored by twanvl's avatar twanvl

Fix #59: cast to Char, not char, the former is wchar_t, the latter is a byte

parent 91f5ad82
...@@ -439,7 +439,7 @@ String regex_escape(Char c) { ...@@ -439,7 +439,7 @@ String regex_escape(Char c) {
/// Escape a string for use in regular expressions /// Escape a string for use in regular expressions
String regex_escape(const String& s) { String regex_escape(const String& s) {
String ret; String ret;
FOR_EACH_CONST(c,s) ret += regex_escape(static_cast<char>(c)); FOR_EACH_CONST(c,s) ret += regex_escape(static_cast<Char>(c));
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment