Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit cf284b9

Browse files
committed
fix(clientsidescripts): by.exactBinding not working because of regex typo
Closes #1441
1 parent 9cc0f63 commit cf284b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/clientsidescripts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ functions.findBindings = function(binding, exactMatch, using, rootSelector) {
6363
if(dataBinding) {
6464
var bindingName = dataBinding.exp || dataBinding[0].exp || dataBinding;
6565
if (exactMatch) {
66-
var matcher = new RegExp('({|\\s|$|\\|)' + binding + '(}|\\s|^|\\|)');
66+
var matcher = new RegExp('({|\\s|^|\\|)' + binding + '(}|\\s|$|\\|)');
6767
if (matcher.test(bindingName)) {
6868
matches.push(bindings[i]);
6969
}
@@ -617,4 +617,4 @@ for (var fnName in functions) {
617617
}
618618

619619
exports.installInBrowser = (util.format(
620-
'window.clientSideScripts = {%s};', scriptsList.join(', ')));
620+
'window.clientSideScripts = {%s};', scriptsList.join(', ')));

0 commit comments

Comments
 (0)