Update index.js

Denis Bondarenko changed to support templates, inlined with script tag like ...type="text/ng-template"
This commit is contained in:
bondden
2014-04-14 04:11:34 +07:00
parent 9d3a977351
commit 2ede385fb3

View File

@@ -9,7 +9,7 @@ module.exports = function (params) {
var customPrefixes = params.customPrefixes || [];
//find ng-something by default
var prefix = 'ng-';
var prefix = '[^\/]ng-'; //Denis Bondarenko changed to support templates, inlined with script tag like ...type="text/ng-template"
//optionally add custom prefixes
if (customPrefixes && customPrefixes.length) {
var additions = customPrefixes.join('|');