mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47: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
|
/// 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user