mirror of
https://github.com/HackPlan/gulp-angular-cloak.git
synced 2026-01-12 22:44:20 +08:00
Update index.js
Denis Bondarenko changed to support templates, inlined with script tag like ...type="text/ng-template"
This commit is contained in:
2
index.js
2
index.js
@@ -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('|');
|
||||
|
||||
Reference in New Issue
Block a user