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

JS String.replace and escaping $

    XMLWordPrintable

Details

    • All
    • cf04d5ee18344d45da538810654690bd3936f46a (qt/qtdeclarative/5.12)

    Description

      Node version:
      [vova7890@dell-i7 tmp]$ cat test.js

      var xx = "${test}";
      var ret = "$12";
      var j = xx.replace("${test}", ret);

      console.log('result', j);

      [vova7890@dell-i7 tmp]$ node test.js
      result $12

      Qt version print this:
      result 2

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            zvova7890 Vova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes