diff --git a/dist/protocol.esm.js b/dist/protocol.esm.js index 71a3d8207ba98ca435045d6e697b14d62d9d14c4..848a523837beb9c960d0f2a0593dab9f671d7a0c 100644 --- a/dist/protocol.esm.js +++ b/dist/protocol.esm.js @@ -125,7 +125,7 @@ class GenericSoarProtocol extends GenericProtocol { * @returns {object} */ createValidator(schema) { - if (typeof schema === 'string' && schema.match(/^[\w.]+$/)) { + if (typeof schema === 'string' && schema.match(/^[\w.-]+$/)) { this.loadSchema(schema).then((schema) => { this.validator = new Validator(schema); }); diff --git a/dist/protocol.js b/dist/protocol.js index e2c74bd15eb889140af9fa6fd70ff7241679e7f3..b8fd616adf1d601fdbabcbbb0545c6623d00afbf 100644 --- a/dist/protocol.js +++ b/dist/protocol.js @@ -127,7 +127,7 @@ class GenericSoarProtocol extends GenericProtocol { * @returns {object} */ createValidator(schema) { - if (typeof schema === 'string' && schema.match(/^[\w.]+$/)) { + if (typeof schema === 'string' && schema.match(/^[\w.-]+$/)) { this.loadSchema(schema).then((schema) => { this.validator = new Validator(schema); });