Changeset 197781 in webkit for trunk/Source/JavaScriptCore/yarr/YarrInterpreter.cpp
- Timestamp:
- Mar 8, 2016, 10:35:58 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/yarr/YarrInterpreter.cpp
r197534 r197781 29 29 30 30 #include "Yarr.h" 31 #include "YarrCanonicalize Unicode.h"31 #include "YarrCanonicalize.h" 32 32 #include <wtf/BumpPointerAllocator.h> 33 33 #include <wtf/DataLog.h> … … 378 378 379 379 if (pattern->m_ignoreCase) { 380 // The definition for canonicalize (see ES 6.0, 15.10.2.8) means that 381 // unicode values are never allowed to match against ascii ones. 382 if (isASCII(oldCh) || isASCII(ch)) { 380 // See ES 6.0, 21.2.2.8.2 for the definition of Canonicalize(). For non-Unicode 381 // patterns, Unicode values are never allowed to match against ASCII ones. 382 // For Unicode, we need to check all canonical equivalents of a character. 383 if (!unicode && (isASCII(oldCh) || isASCII(ch))) { 383 384 if (toASCIIUpper(oldCh) == toASCIIUpper(ch)) 384 385 continue;
Note:
See TracChangeset
for help on using the changeset viewer.