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

Add UnGlobbedWildcardConversion option to wildcardToRegularExpression

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes