diff --git a/lib/config.js b/lib/config.js index 84bf978..86d994b 100644 --- a/lib/config.js +++ b/lib/config.js @@ -17,7 +17,8 @@ module.exports = class Config { string: '"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"', number: "(-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)", boolean: "(true|false)", - null: "(null)" + null: "(null)", + range: "(\\d+\\.\\.\\d+|\\d+:\\d+\\.\\.\\d+|\\d+)" } } @@ -72,6 +73,9 @@ module.exports = class Config { ) ) break + case "range": + argumentsArray.push(currentArgument) + break default: argumentsArray.push(JSON.parse(currentArgument)) }