Skip to content

Commit

Permalink
Fix Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
erosman authored Oct 3, 2023
1 parent 0ed7b90 commit 51792f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/on-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class OnRequest {
const data = pref.data.filter(i => i.active && i.type !== 'pac' && i.hostname);

// --- single proxy
/:\d$/.test(pref.mode) && (this.proxy = data.find(i => pref.mode === `${i.hostname}:${i.port}`));
/:\d+$/.test(pref.mode) && (this.proxy = data.find(i => pref.mode === `${i.hostname}:${i.port}`));

// --- proxy by pattern
// this.proxy = null;
Expand Down

0 comments on commit 51792f4

Please sign in to comment.