diff --git a/lib/tldr-lint.js b/lib/tldr-lint.js index 50f5e9e..54f7635 100644 --- a/lib/tldr-lint.js +++ b/lib/tldr-lint.js @@ -4,7 +4,7 @@ const parser = require('./tldr-parser.js').parser; const util = require('util'); const MAX_EXAMPLES = 8; -const ILLEGAL_WINDOWS_CHARACTERS = /[<>:"/\\|?*]/; +const INVALID_WINDOWS_CHARACTERS = /[<>:"/\\|?*]/; module.exports.ERRORS = parser.ERRORS = { 'TLDR001': 'File should contain no leading whitespace', @@ -214,7 +214,7 @@ linter.processFile = function(file, verbose, alsoFormat, ignoreErrors) { result.errors.push({ locinfo: { first_line: '0' }, code: 'TLDR109', description: this.ERRORS.TLDR109 }); } - if (ILLEGAL_WINDOWS_CHARACTERS.test(path.basename(file))) { + if (INVALID_WINDOWS_CHARACTERS.test(path.basename(file))) { result.errors.push({ locinfo: { first_line: '0' }, code: 'TLDR111', description: this.ERRORS.TLDR111 }); }