tldr-lint 0.0.17 → 0.0.19
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 +7 -2
- package/package.json +3 -3
package/lib/tldr-parser.js
CHANGED
|
@@ -700,7 +700,12 @@ break;
|
|
|
700
700
|
case 7:
|
|
701
701
|
if (this.topState() === "title") {
|
|
702
702
|
yy_.yytext = this.matches[1];
|
|
703
|
-
if (
|
|
703
|
+
if (
|
|
704
|
+
/[^\w+\[\]{}!%,^~$. \-]/.test(yy_.yytext) ||
|
|
705
|
+
(yy_.yytext.endsWith('.') && yy_.yytext !== '.' && yy_.yytext !== ' .')
|
|
706
|
+
) {
|
|
707
|
+
yy.error(yy_.yylloc, 'TLDR013');
|
|
708
|
+
}
|
|
704
709
|
this.checkTrailingWhitespace(this.matches[2], yy_.yylloc);
|
|
705
710
|
this.checkNewline(this.matches[3], yy_.yylloc);
|
|
706
711
|
this.popState();
|
|
@@ -882,4 +887,4 @@ exports.main = function commonjsMain (args) {
|
|
|
882
887
|
if (typeof module !== 'undefined' && require.main === module) {
|
|
883
888
|
exports.main(process.argv.slice(1));
|
|
884
889
|
}
|
|
885
|
-
}
|
|
890
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tldr-lint",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "A linting tool to validate tldr pages",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=22"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"commander": "^
|
|
43
|
+
"commander": "^14.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"concurrently": "^9.1.2",
|