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

The split() method aborts when used with regexp

XMLWordPrintable

      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]; }

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes