Removed @backstage from matching regex
Signed-off-by: Harrison Hogg <hhogg@spotify.com>
This commit is contained in:
@@ -125,7 +125,7 @@ function getBackstagePackageFeature$$TypeFromType(
|
||||
const $$type = property
|
||||
.getValueDeclaration()
|
||||
?.getText()
|
||||
.match(/(?<type>@backstage\/\w+)/)?.groups?.type;
|
||||
.match(/(\$\$type: '(?<type>.+)')/)?.groups?.type;
|
||||
|
||||
if ($$type && isTargetFeatureType($$type)) {
|
||||
return $$type;
|
||||
|
||||
Reference in New Issue
Block a user