Skip to content

Commit

Permalink
feat(map): drop regex in favour of util fun
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Casey <[email protected]>
  • Loading branch information
jonathan-casey committed Oct 18, 2023
1 parent cf48362 commit e2cf402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/concerto-core/lib/decoratormanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class DecoratorManager {
static decorateModels(modelManager, decoratorCommandSet, options) {

// get the version of the input decoratorCommandSet from its $class property
const inputVersion = ModelUtil.parseNamespace(decoratorCommandSet.$class.replace(/\.([^.]*)$/, '')).version;
const inputVersion = ModelUtil.parseNamespace(ModelUtil.getNamespace(decoratorCommandSet.$class)).version;

// if its < the currect DCS_Version, rewrite the $class version to match the supported DCS_VERSION
if (semver.lt(inputVersion, DCS_VERSION)) {
Expand Down

0 comments on commit e2cf402

Please sign in to comment.