Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
erosman authored Oct 24, 2023
1 parent b6db448 commit b5cc7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Pattern {

// --- pattern
i = i.replaceAll('.', '\\.') // literal '.'
.replaceAll('*', '.*'); // wildcard
.replaceAll('*', '.*'); // wildcard
i.startsWith('\\.') && (i = '^[a-z]+://.*' + i); // starting with '.'
!i.includes('://') && (i = '^[a-z]+://' + i); // add scheme
!i.startsWith('^') && (i = '^' + i); // add start with assertion
Expand Down

0 comments on commit b5cc7d1

Please sign in to comment.