Changeset 39963 in webkit for trunk/JavaScriptCore/pcre/pcre_compile.cpp
- Timestamp:
- Jan 16, 2009, 12:01:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/pcre/pcre_compile.cpp
r39554 r39963 1059 1059 reqvary = (repeatMin == repeat_max) ? 0 : REQ_VARY; 1060 1060 1061 // A quantifier after an assertion is meaningless, since assertions1062 // don't move index forward. So, we discard it.1063 if (*previous == OP_ASSERT || *previous == OP_ASSERT_NOT)1064 goto END_REPEAT;1065 1066 1061 opType = 0; /* Default single-char op codes */ 1067 1062 … … 1415 1410 else 1416 1411 code[-ketoffset] = OP_KETRMAX + repeatType; 1412 } 1413 1414 // A quantifier after an assertion is mostly meaningless, but it 1415 // can nullify the assertion if it has a 0 minimum. 1416 else if (*previous == OP_ASSERT || *previous == OP_ASSERT_NOT) { 1417 if (repeatMin == 0) { 1418 code = previous; 1419 goto END_REPEAT; 1420 } 1417 1421 } 1418 1422
Note:
See TracChangeset
for help on using the changeset viewer.