mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
backslash escapes in regexp should be addressed by Regexp processor; close #2005
This commit is contained in:
@@ -3829,6 +3829,10 @@ parse_string(parser_state *p)
|
||||
tokadd(p, '\n');
|
||||
}
|
||||
}
|
||||
else if (type & STR_FUNC_REGEXP) {
|
||||
tokadd(p, '\\');
|
||||
tokadd(p, c);
|
||||
}
|
||||
else {
|
||||
pushback(p, c);
|
||||
tokadd(p, read_escape(p));
|
||||
|
||||
Reference in New Issue
Block a user