mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-16 10:29:37 +08:00
fix(ngdoc): fix the node warnings that show up during build
This commit is contained in:
committed by
Misko Hevery
parent
b36504577c
commit
4949586a76
@@ -43,7 +43,7 @@ function Doc(text, file, line) {
|
||||
this.links = this.links || [];
|
||||
}
|
||||
Doc.METADATA_IGNORE = (function() {
|
||||
var words = require('fs').readFileSync(__dirname + '/ignore.words', 'utf8');
|
||||
var words = fs.readFileSync(__dirname + '/ignore.words', 'utf8');
|
||||
return words.toString().split(/[,\s\n\r]+/gm);
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user