tldr-lint 0.0.18 → 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.
@@ -700,7 +700,12 @@ break;
700
700
  case 7:
701
701
  if (this.topState() === "title") {
702
702
  yy_.yytext = this.matches[1];
703
- if (this.matches[1].match(/([^\w+\[\]}!. -])|(\.$)/)) yy.error(yy_.yylloc, 'TLDR013');
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tldr-lint",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "A linting tool to validate tldr pages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  }
37
37
  ],
38
38
  "engines": {
39
- "node": ">=18"
39
+ "node": ">=22"
40
40
  },
41
41
  "license": "MIT",
42
42
  "dependencies": {