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

NonPathWildcardConversion: * and ? do not match newline characters

    XMLWordPrintable

Details

    • All
    • 313bb3236 (dev)

    Description

      As can be seen in https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/text/qregularexpression.cpp?id=393e496385e4de8522b8ffff0e539f9150238c07#n1937, a dot is used if the NonPathWildcardConversion option is enabled and not used otherwise. Therefore, only in case of non-path wildcard conversion, matching newlines requires creating a QRegularExpression with the DotMatchesEverythingOption pattern option. This is an unfortunate inconsistency. Can be fixed by e.g. replacing

      u".*", u"."
      

      with

      u"[\\d\\D]*", u"[\\d\\D]"
      

      Attachments

        For Gerrit Dashboard: QTBUG-113676
        # Subject Branch Project Status CR V

        Activity

          People

            peppe Giuseppe D'Angelo
            vedg Igor Kushnir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes