Ignore:
Timestamp:
Oct 10, 2014, 4:39:22 PM (5 years ago)
Author:
cameron
Message:

Only the first in [] means negated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r4203 r4229  
    277277            case '^':
    278278                // If the first character after the [ is a ^ (caret) then the matching character class is complemented.
    279                 if (start == _cursor) {
     279                if ((start == _cursor) && !negated) {
    280280                    negated = true;
    281281                    start = ++_cursor; // move the start ahead in case the next character is a ] or -
Note: See TracChangeset for help on using the changeset viewer.