[ https://issues.apache.org/jira/browse/CB-13496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16605344#comment-16605344 ]
ASF GitHub Bot commented on CB-13496: ------------------------------------- erisu commented on issue #45: CB-13496: Fix greedy regex in plist-helpers URL: https://github.com/apache/cordova-common/pull/45#issuecomment-418984322 @dpogue Is this related to https://github.com/apache/cordova-common/issues/44? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > the plugin config-file tag for iOS plist array behaves unnaturally. > ------------------------------------------------------------------- > > Key: CB-13496 > URL: https://issues.apache.org/jira/browse/CB-13496 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-common > Affects Versions: 2.1.0 > Environment: Mac OSX > Reporter: Ken Naito > Priority: Trivial > Original Estimate: 504h > Remaining Estimate: 504h > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org