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

Commit

Permalink
fix(clientsidescripts): by.exactBinding not working because of regex …
Browse files Browse the repository at this point in the history
…typo

Closes #1441
  • Loading branch information
hankduan committed Oct 27, 2014
1 parent 9cc0f63 commit cf284b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/clientsidescripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ functions.findBindings = function(binding, exactMatch, using, rootSelector) {
if(dataBinding) {
var bindingName = dataBinding.exp || dataBinding[0].exp || dataBinding;
if (exactMatch) {
var matcher = new RegExp('({|\\s|$|\\|)' + binding + '(}|\\s|^|\\|)');
var matcher = new RegExp('({|\\s|^|\\|)' + binding + '(}|\\s|$|\\|)');
if (matcher.test(bindingName)) {
matches.push(bindings[i]);
}
Expand Down Expand Up @@ -617,4 +617,4 @@ for (var fnName in functions) {
}

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

0 comments on commit cf284b9

Please sign in to comment.