From 554302f49dc71d1cf18a0baaecebeba41417b131 Mon Sep 17 00:00:00 2001 From: aurelian Date: Mon, 22 Jun 2015 16:26:32 +0200 Subject: [PATCH] ignore case. --- src/main/javascript/helpers/handlebars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/javascript/helpers/handlebars.js b/src/main/javascript/helpers/handlebars.js index f3c6de7c..787eb310 100644 --- a/src/main/javascript/helpers/handlebars.js +++ b/src/main/javascript/helpers/handlebars.js @@ -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] + '\'';