jscript: Fixed backslash handling in regular expressions.
diff --git a/dlls/jscript/lex.c b/dlls/jscript/lex.c
index 4ad9fe5..93397a3 100644
--- a/dlls/jscript/lex.c
+++ b/dlls/jscript/lex.c
@@ -709,8 +709,10 @@
TRACE("\n");
re = ctx->ptr;
- while(ctx->ptr < ctx->end && (*ctx->ptr != '/' || *(ctx->ptr-1) == '\\'))
- ctx->ptr++;
+ while(ctx->ptr < ctx->end && *ctx->ptr != '/') {
+ if(*ctx->ptr++ == '\\' && ctx->ptr < ctx->end)
+ ctx->ptr++;
+ }
if(ctx->ptr == ctx->end) {
WARN("unexpected end of file\n");