Permalink
Browse files

fixed regex to allow data-* attributes besides data-bind to fix http:…

  • Loading branch information...
1 parent 700f6a9 commit 9ca55d42daaeae2295eed634f5f0ad688e7054db @joeldart committed May 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/templating/templateRewriting.js
@@ -1,6 +1,6 @@
ko.templateRewriting = (function () {
- var memoizeBindingAttributeSyntaxRegex = /(<[a-z]+\d*(\s+(?!data-bind=)[a-z0-9]+(=(\"[^\"]*\"|\'[^\']*\'))?)*\s+)data-bind=(["'])([\s\S]*?)\5/gi;
+ var memoizeBindingAttributeSyntaxRegex = /(<[a-z]+\d*(\s+(?!data-bind=)[a-z0-9\-]+(=(\"[^\"]*\"|\'[^\']*\'))?)*\s+)data-bind=(["'])([\s\S]*?)\5/gi;
return {
ensureTemplateIsRewritten: function (template, templateEngine) {

0 comments on commit 9ca55d4

Please sign in to comment.