Commit a4334a2e authored by Dan Jones's avatar Dan Jones
Browse files

Merge branch '26-add-hyphen-to-regex-for-version' into 'dev'

Resolve "Add hyphen to regex for version"

Closes #26

See merge request !18
parents 6f12efac 28223664
Pipeline #232861 passed with stages
in 1 minute and 45 seconds
This commit is part of merge request !21. Comments created here will be created in the context of that merge request.
...@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ...@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased] ## [Unreleased]
### Changed
- Add hyphen to regex for schema version to enable issue branches
## [v0.1.0] - 2023-03-24 ## [v0.1.0] - 2023-03-24
### Added ### Added
......
...@@ -125,7 +125,7 @@ export class GenericSoarProtocol extends GenericProtocol { ...@@ -125,7 +125,7 @@ export 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