From ea52e6733e676acb028358d094a5957a732bab13 Mon Sep 17 00:00:00 2001 From: "jwalden@mit.edu" Date: Fri, 27 Apr 2007 18:27:38 -0700 Subject: [PATCH] Bug 378738 - \d pattern matches characters other than the decimal digits 0-9. r=mrbkap --- js/src/jsregexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jsregexp.c b/js/src/jsregexp.c index 31c6a8406b3..a075aacd315 100644 --- a/js/src/jsregexp.c +++ b/js/src/jsregexp.c @@ -2557,13 +2557,13 @@ SimpleMatch(REGlobalData *gData, REMatchState *x, REOp op, } break; case REOP_DIGIT: - if (x->cp != gData->cpend && JS_ISDIGIT(*x->cp)) { + if (x->cp != gData->cpend && JS7_ISDEC(*x->cp)) { result = x; result->cp++; } break; case REOP_NONDIGIT: - if (x->cp != gData->cpend && !JS_ISDIGIT(*x->cp)) { + if (x->cp != gData->cpend && !JS7_ISDEC(*x->cp)) { result = x; result->cp++; }