Commit 825abec3 authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

fix: rebuilt dist protocols

parent a4334a2e
Pipeline #242796 passed with stages
in 3 minutes and 28 seconds
...@@ -125,7 +125,7 @@ class GenericSoarProtocol extends GenericProtocol { ...@@ -125,7 +125,7 @@ class GenericSoarProtocol extends GenericProtocol {
* @returns {object} * @returns {object}
*/ */
createValidator(schema) { createValidator(schema) {
if (typeof schema === 'string' && schema.match(/^[\w.]+$/)) { if (typeof schema === 'string' && schema.match(/^[\w.-]+$/)) {
this.loadSchema(schema).then((schema) => { this.loadSchema(schema).then((schema) => {
this.validator = new Validator(schema); this.validator = new Validator(schema);
}); });
......
...@@ -127,7 +127,7 @@ class GenericSoarProtocol extends GenericProtocol { ...@@ -127,7 +127,7 @@ class GenericSoarProtocol extends GenericProtocol {
* @returns {object} * @returns {object}
*/ */
createValidator(schema) { createValidator(schema) {
if (typeof schema === 'string' && schema.match(/^[\w.]+$/)) { if (typeof schema === 'string' && schema.match(/^[\w.-]+$/)) {
this.loadSchema(schema).then((schema) => { this.loadSchema(schema).then((schema) => {
this.validator = new Validator(schema); this.validator = new Validator(schema);
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment