Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10192

QRegExp in mode WildcardUnix does not work if character to be escaped is the last in the string

    XMLWordPrintable

Details

    • 8eb2546bf23419e20064f4cf5c308e77831b3ee5 in qtbase and 7ce3726aea4be2dfdb57966a4482f66fec6f8f57 in 4.8

    Description

      QRegExp rx("B\\[1
      ]", Qt::CaseSensitive, QRegExp::WildcardUnix);
      this will not match
      QString s("B[1]");
      because of internal function wc2rx not working correctly.

      Line 778 in qregexp.cpp should be

      if (i == wclen) { // the end

      instead of i+1

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              w00t Robin Burchell
              malula Matthias Lang
              Votes:
              8 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes