Skip to content

Commit 40f9c36

Browse files
authored
Merge pull request #89 from m-a-orlowski/master
Fixed lacking backslash in RegExp
2 parents 09ab953 + 6cbd1bf commit 40f9c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ function generateGoogleHostREs () {
153153

154154
for (let googleDomain of GOOGLE_DOMAINS) {
155155
googleDomain = googleDomain.replace(matchOperatorsRegex, '\\$&');
156-
googleHostREs.push(new RegExp(`(^|\.)${googleDomain}$`));
156+
googleHostREs.push(new RegExp(`(^|\\.)${googleDomain}$`));
157157
}
158158
for (let youtubeDomain of YOUTUBE_DOMAINS) {
159159
youtubeDomain = youtubeDomain.replace(matchOperatorsRegex, '\\$&');
160-
youtubeHostREs.push(new RegExp(`(^|\.)${youtubeDomain}$`));
160+
youtubeHostREs.push(new RegExp(`(^|\\.)${youtubeDomain}$`));
161161
}
162162
}
163163

0 commit comments

Comments
 (0)