diff --git a/src/coffee/models/parser_versions/mod_parser_v1.coffee b/src/coffee/models/parser_versions/mod_parser_v1.coffee index f244fb301..3b6420675 100644 --- a/src/coffee/models/parser_versions/mod_parser_v1.coffee +++ b/src/coffee/models/parser_versions/mod_parser_v1.coffee @@ -39,6 +39,7 @@ module.exports = class ModParserV1 extends CommandParserVersionBase @_rawData.description = description _command_documentationUrl: (documentationUrl)-> + documentationUrl ?= '' if @_rawData.documentationUrl? then throw new Error 'duplicate declaration of "documentationUrl"' if documentationUrl.length is 0 then throw new Error 'documentationUrl cannot be empty (omit it instead)' @_rawData.documentationUrl = documentationUrl