tldr-lint 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tldr-parser.js +2 -1
- package/package.json +1 -1
package/lib/tldr-parser.js
CHANGED
|
@@ -725,7 +725,8 @@ case 8:
|
|
|
725
725
|
if (this.topState() === 'description') {
|
|
726
726
|
this.popState();
|
|
727
727
|
yy_.yytext = this.matches[1];
|
|
728
|
-
|
|
728
|
+
var exceptions = ['npm', 'pnpm'];
|
|
729
|
+
if (!exceptions.includes(yy_.yytext.replace(/ .*/,'')) && yy_.yytext.match(/^[a-z]/)) {
|
|
729
730
|
yy.error(yy_.yylloc, 'TLDR003');
|
|
730
731
|
}
|
|
731
732
|
var punctuation = this.matches[2];
|