Skip to content

Commit

Permalink
We shouldn't match on the value of the argument, because of urls (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
u9g authored Jul 4, 2023
1 parent 37a3637 commit b52c547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function activate(context: vscode.ExtensionContext) {
for (const filter of matched) {
if (filter.charAt(0) === "$") {
const filterRE = new RegExp(
`"${filter.substring(1)}": [a-zA-Z0-9_]+\\([a-zA-Z0-9_"]+\\),?\n` // substring(1) to get rid of '$'
`"${filter.substring(1)}": [a-zA-Z0-9_]+\\(.+\\),?\n` // substring(1) to get rid of '$'
);
if (text.match(filterRE) === null) {
let lastMatch = 0;
Expand Down

0 comments on commit b52c547

Please sign in to comment.