Skip to content

Commit a9be0c6

Browse files
authored
fix terminal link regex (#466)
1 parent b58686c commit a9be0c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/terminalLinkProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function configureTerminalLinkProvider(
2727
_token: vscode.CancellationToken,
2828
): vscode.ProviderResult<TerminalLinkWithData[]> => {
2929
const regex =
30-
/(?:\((?<app>[_a-z0-9]+) \d+.\d+.\d+\) )(?<file>[_a-z0-9/]*[_a-z0-9]+.ex):(?<line>\d+)/;
30+
/(?:\((?<app>[_a-z0-9]+) \d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?\) )(?<file>[_a-z0-9/]*[_a-z0-9]+\.ex):(?<line>\d+)/;
3131
const matches = context.line.match(regex);
3232
if (matches === null) {
3333
return [];

0 commit comments

Comments
 (0)