Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Nov 28, 2023
1 parent 9728854 commit 3fdea72
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ export function isPreferredOverHelper(
scopeB: TargetScope,
matchers: RegExp[],
): boolean | undefined {
const {
editor: { document },
} = scopeA;
const textA = document.getText(scopeA.domain);
const textB = document.getText(scopeB.domain);
const textA = scopeA.editor.document.getText(scopeA.domain);
const textB = scopeA.editor.document.getText(scopeB.domain);

for (const matcher of matchers) {
// NB: Don't directly use `test` here because global regexes are stateful
Expand Down

0 comments on commit 3fdea72

Please sign in to comment.