tldr-lint 0.0.21 → 0.0.22

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/README.md CHANGED
@@ -71,10 +71,10 @@ TLDR009 | Page should contain a newline at end of file
71
71
  TLDR010 | Only Unix-style line endings allowed
72
72
  TLDR011 | Page never contains more than a single empty line
73
73
  TLDR012 | Page should contain no tabs
74
- TLDR013 | Title should be alphanumeric with dashes, underscores or spaces
74
+ TLDR013 | Title should be alphanumeric with dashes, underscores, spaces or allowed characters
75
75
  TLDR014 | Page should contain no trailing whitespace
76
76
  TLDR015 | Example descriptions should start with a capital letter
77
- TLDR016 | Label for information link should be spelled exactly `More information: `
77
+ TLDR016 | Label for information link should be spelled exactly `More information:` (with a succeeding whitespace)
78
78
  TLDR017 | Information link should be surrounded with angle brackets
79
79
  TLDR018 | Page should only include a single information link
80
80
  TLDR019 | Page should only include a maximum of 8 examples
@@ -707,7 +707,7 @@ case 7:
707
707
  if (this.topState() === "title") {
708
708
  yy_.yytext = this.matches[1];
709
709
  if (
710
- /[^\w+\[\]{}!%,^~$:><|?. -]/.test(yy_.yytext) ||
710
+ /[^\w+\[\]{}\(\)!%,^~$:><|?. -]/.test(yy_.yytext) ||
711
711
  (yy_.yytext.endsWith('.') && yy_.yytext !== '.' && yy_.yytext !== ' .')
712
712
  ) {
713
713
  yy.error(yy_.yylloc, 'TLDR013');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tldr-lint",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "A linting tool to validate tldr pages",
5
5
  "repository": {
6
6
  "type": "git",