mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fix #59: cast to Char, not char, the former is wchar_t, the latter is a byte
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1609 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+1
-1
@@ -439,7 +439,7 @@ String regex_escape(Char c) {
|
||||
/// Escape a string for use in regular expressions
|
||||
String regex_escape(const String& s) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user