Permalink
Browse files

Missed off a backslash. \. => \\.

  • Loading branch information...
aelliott committed Mar 28, 2012
1 parent d2b2674 commit 0158057b1bf7185c8189895170b135fec7e5e9c9
Showing with 3 additions and 3 deletions.
  1. +1 −1 RegexModules/icuparser.cpp
  2. +1 −1 RegexModules/pcreparser.cpp
  3. +1 −1 RegexModules/qtparser.cpp
@@ -198,7 +198,7 @@ void IcuParser::handleToken(RegexpToken token)
{
QRegExp rx;
QRegExp characterClass;
- QRegExp bracketExpressionLiteral("[^\\\\[\\]\.]|\\\\[^a-zA-Z0-9]");
+ QRegExp bracketExpressionLiteral("[^\\\\[\\]\\.]|\\\\[^a-zA-Z0-9]");
QRegExp bracketExpressionRange(_syntax[T_BRACKET_EXPRESSION_RANGE]);
QRegExp flagClose;
Token *openingToken;
@@ -194,7 +194,7 @@ void PcreParser::handleToken(RegexpToken token)
{
QRegExp rx;
QRegExp characterClass;
- QRegExp bracketExpressionLiteral("[^\\\\[\\]\.]|\\\\[^a-zA-Z0-9]");
+ QRegExp bracketExpressionLiteral("[^\\\\[\\]\\.]|\\\\[^a-zA-Z0-9]");
QRegExp bracketExpressionRange(_syntax[T_BRACKET_EXPRESSION_RANGE]);
QRegExp flagClose;
Token *openingToken;
@@ -91,7 +91,7 @@ void QtParser::handleToken(RegexpToken token)
{
QRegExp groupingClose(_syntax[T_GROUPING_CLOSE]);
QRegExp assertionClose(_syntax[T_ASSERTION_CLOSE]);
- QRegExp bracketExpressionLiteral("[^\\\\[\\]\.]|\\\\[^a-zA-Z0-9]");
+ QRegExp bracketExpressionLiteral("[^\\\\[\\]\\.]|\\\\[^a-zA-Z0-9]");
QRegExp bracketExpressionRange(_syntax[T_BRACKET_EXPRESSION_RANGE]);
QRegExp bracketExpressionClose(_syntax[T_BRACKET_EXPRESSION_CLOSE]);
QRegExp characterClass("");

0 comments on commit 0158057

Please sign in to comment.