diff --git a/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.js b/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.js index d1496d39d8..c1c84b821e 100644 --- a/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.js +++ b/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.js @@ -5,6 +5,6 @@ */ module.exports = function ignoreGenericWords() { - const ignoredWords = new Set(['a', 'classes', 'create', 'error', 'group', 'request', 'target', 'value']); + const ignoredWords = new Set(['a', 'classes', 'create', 'error', 'group', 'request', 'target', 'value', '_']); return (docs, words, index) => ignoredWords.has(words[index].toLowerCase()) ? [] : docs; }; diff --git a/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.spec.js b/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.spec.js index de843a3c23..d82e5e2273 100644 --- a/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.spec.js +++ b/aio/tools/transforms/angular-base-package/services/auto-link-filters/ignoreGenericWords.spec.js @@ -16,6 +16,12 @@ describe('ignoreGenericWords', () => { expect(ignoreGenericWords(docs, words, 1)).toEqual([]); expect(ignoreGenericWords(docs, words, 2)).toEqual(docs); }); + + it('should ignore `_` in all docs', () => { + const docs = [{docType: 'package', name: 'create'}, {docType: 'class', name: 'Foo'}]; + const words = ['_']; + expect(ignoreGenericWords(docs, words, 0)).toEqual([]); + }); });