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

The split() method aborts when used with regexp

    XMLWordPrintable

Details

    Description

      The split() method used in QML terminates when a regular expression is used as separator and the split is expected to be successful.

      Example

      function split_text() {
      var text_to_split = 'May the 4th be with U';
      return text_to_split.split(/\s/g);
      }
      [...]

      Button {
      onClicked:

      { label.text = split_text()[0]; }

      Attachments

        Issue Links

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

          Activity

            People

              laknoll Lars Knoll
              zoltan_balogh Zoltan Balogh
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes