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

qmake contains() function second argument is a regex.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.1.1
    • 5.0.2
    • Documentation
    • None

    Description

      Current documentation for the contains() function:

      http://qt-project.org/doc/qt-5.0/qtdoc/qmake-test-function-reference.html#contains-variablename-value

      does not say that the second argument (called "value") is actually treated as a regular expression.

      From the latest code it also seems that contains may accept 3 arguments, but I have hard time understanding the intent. It looks like the third argument could be used to further restrict the match to a list of possible values, but the regex is still required.

      Attachments

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

        Activity

          People

            vertries Nico Vertriest (Inactive)
            ibobyr Ilya Bobyr
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes