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

A regular expression pattern gives unexpected results in QML and QJSEngine.

    XMLWordPrintable

Details

    • 9d9413f3d (dev), 9156754ab (6.8), bcacae916 (tqtc/lts-6.5)

    Description

      The following line "12345.897".replace(/\./g, ",").replace(/\B(?=(\d{3})+(?!\d))/g, ".") returns 12..345,897 in QML and QJSEngine. However, browser javascript environments return 12.345,897.

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              mahdi.belila Mehdi Belila
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes