Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13496

the plugin config-file tag for iOS plist array behaves unnaturally.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: cordova-common@3.0.0
    • Component/s: cordova-common
    • Labels:
      None
    • Environment:

      Mac OSX

      Description

      In the src/util/plist-helpers.js, in the nodeEqual function,
      ```
      node2 = escapeRE(node2).replace(/\\\$\S+/gm, '(.*?)');
      ```
      seems the strange behavior.
      For example, the escaped node2 "$(ABC)Hello" becomes "(.*?)".

      In the previous version of this code is
      ```
      node2 = escapeRE(node2).replace(new RegExp('
      $[a-zA-Z0-9-_]+','gm'),'(.*?)');
      ```
      in this case, the escaped node2 "$(ABC)Hello" is unchaned.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dpogue Darryl Pogue
                Reporter:
                knaito Ken Naito
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 504h
                  504h
                  Remaining:
                  Remaining Estimate - 504h
                  504h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified