--goto validation

fixes #11753
This commit is contained in:
Joao Moreno 2016-09-09 11:20:43 +02:00
parent d881e77c75
commit 4394664a70

View file

@ -74,7 +74,7 @@ const options: minimist.Opts = {
function validate(args: ParsedArgs): ParsedArgs {
if (args.goto) {
args._.forEach(arg => assert(/^(\w:)?[^:]+(:\d+){0,2}$/.test(arg), localize('gotoValidation', "Arguments in `--goto` mode should be in the format of `FILE(:LINE(:COLUMN))`.")));
args._.forEach(arg => assert(/^(\w:)?[^:]+(:\d*){0,2}$/.test(arg), localize('gotoValidation', "Arguments in `--goto` mode should be in the format of `FILE(:LINE(:COLUMN))`.")));
}
return args;