Commit f4ff9deb authored by Owain Jones's avatar Owain Jones
Browse files

Merge branch '29-fix-beta-tags-failing-validation' into 'dev'

fix: rebuilt dist protocols

Closes #29

See merge request !19
2 merge requests!21Release v1.0.0,!19fix: rebuilt dist protocols
Pipeline #262737 passed with stages
in 2 minutes and 39 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