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

Add UnGlobbedWildcardConversion option to wildcardToRegularExpression

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • 6.6.0
    • 6.4.2, 5.15, 6.2
    • None
    • All
    • 4b197c3f5 (dev)

    Description

      I think it would be useful to be able to modify the behaviour of wildcardToRegularExpression so it no longer assumes the wildcard is for file name globbing.

      Most of our users can handle using syntax like "*" and "?" but asking them to write perl-style regular expressions is beyond them. It would be nice to be able to convert these simplified wildcard string to QRegularExpressions.

      Without reading the code carefully, it would seem this could be implemented as a flag to wildcardToRegularExpression to set starEscape and questionMarkEscape to ".*" and "?" thereby removing the special treatment for file paths.

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            michael.partridge Michael Partridge
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes