Skip to content

Commit

Permalink
Merge pull request #5409 from tbw777/fix/KODataBindContext
Browse files Browse the repository at this point in the history
Fixed incorrect regexp usage in KODataBindContext
  • Loading branch information
matthiasblaesing authored Feb 4, 2023
2 parents 570e74a + 2b7c432 commit f33416e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void push(String newData, boolean foreach, String alias, boolean noExpan
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
Expand Down

0 comments on commit f33416e

Please sign in to comment.