Skip to content

Commit 00aadaf

Browse files
committed
just capture after x-
1 parent 32d4755 commit 00aadaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/bladeComponent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export const linkProvider: LinkProvider = (doc: vscode.TextDocument) => {
1010
const views = getViews().items;
1111

1212
lines.forEach((line, index) => {
13-
const match = line.match(/<\/?(x-[^\s>]+)/);
13+
const match = line.match(/<\/?x-([^\s>]+)/);
1414

1515
if (match && match.index !== undefined) {
16-
const componentName = match[1].replace("x-", "");
16+
const componentName = match[1];
1717
// Standard component
1818
const viewName = "components." + componentName;
1919
// Index component

0 commit comments

Comments
 (0)