ignore case.

This commit is contained in:
aurelian
2015-06-22 16:26:32 +02:00
parent a7aa7b2215
commit 554302f49d

View File

@@ -13,7 +13,7 @@ Handlebars.registerHelper('renderTextParam', function(param) {
var dataVendorExtensions = Object.keys(param).filter(function(property) {
// filter X-data- properties
return property.match(/^X-data-/) !== null;
return property.match(/^X-data-/i) !== null;
}).reduce(function(result, property) {
// remove X- from property name, so it results in html attributes like data-foo='bar'
return result += ' ' + property.substring(2, property.length) + '=\'' + param[property] + '\'';