diff --git a/CHANGELOG.md b/CHANGELOG.md index ee493a372b6079ac88a9a32441275f2be137fa76..042f643351e43dcdf7b8ef3b101e7d3e60585703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Changed + +- Add hyphen to regex for schema version to enable issue branches + ## [v0.1.0] - 2023-03-24 ### Added diff --git a/src/protocol/index.js b/src/protocol/index.js index e1f35d334f0a3b3b42c42e23f09c87d7cd991f48..0dc039b5c96b90b4d5e919be4ea1e44cd541f232 100644 --- a/src/protocol/index.js +++ b/src/protocol/index.js @@ -125,7 +125,7 @@ export 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); });