Removed @backstage from matching regex

Signed-off-by: Harrison Hogg <hhogg@spotify.com>
This commit is contained in:
Harrison Hogg
2024-09-23 12:45:07 +01:00
parent e69428c5f8
commit 0b2794a387
+1 -1
View File
@@ -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;