This is an automated email from the ASF dual-hosted git repository.
matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 2b7c432421 Fixed incorrect regexp usage in KODataBindContext
new f33416edc5 Merge pull request #5409 from tbw777/fix/KODataBindContext
2b7c432421 is described below
commit 2b7c43242164f98f55666c32e9825352a6eb6412
Author: Andrey Bruykhov <[email protected]>
AuthorDate: Thu Feb 2 00:25:31 2023 +0300
Fixed incorrect regexp usage in KODataBindContext
$ = string end
---
.../src/org/netbeans/modules/html/knockout/KODataBindContext.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/webcommon/html.knockout/src/org/netbeans/modules/html/knockout/KODataBindContext.java
b/webcommon/html.knockout/src/org/netbeans/modules/html/knockout/KODataBindContext.java
index 03d4593ee9..7a764b59bf 100644
---
a/webcommon/html.knockout/src/org/netbeans/modules/html/knockout/KODataBindContext.java
+++
b/webcommon/html.knockout/src/org/netbeans/modules/html/knockout/KODataBindContext.java
@@ -76,7 +76,7 @@ public class KODataBindContext {
assert alias == null || foreach;
String replacement = (data == null || data.equals("$root")) ?
"ko.$bindings" : data; // NOI18N
- String toAdd = newData.replaceAll("$data", replacement); // NOI18N
+ String toAdd = newData.replace("$data", replacement); // NOI18N
if (!noExpansion && foreach) {
toAdd = "(" + toAdd + ")[0]"; // NOI18N
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists