codingyu / laravel-goto-view

vscode extension
MIT License
45 stars 28 forks source link

bug on inertia #63

Closed holiq closed 1 year ago

holiq commented 1 year ago

in inertia::render() can not goto component inside a folder with separator slash, like Auth/login, it still work if i use dot Auth.Login like bellow

Screenshot_20221114_000306
funkymonk91 commented 1 year ago

Hopefully this is still useful for you. I just encountered this and resolved it by updating my regex pattern to:

"laravel_goto_view.regex": "(?<=view\\(['\"]|\\(view:.['\"]|View::make\\(['\"]|@include\\(['\"]|@extends\\(['\"]|@component\\(['\"]|Inertia::render\\(['\"]|\\(component:.['\"]|<)(?:x-|livewire:|[^'\"\\s/>]+(?:\\/[^'\"\\s/>]+)*)"

https://regexr.com/7ghkc

holiq commented 1 year ago

Thats work bro, let's make the pr to close this issue