Skip to content

Commit 39046ae

Browse files
Escape dot in regular expression and add end of line
Fixes #33
1 parent a4d228d commit 39046ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auto-events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
optionsLink.downloads &&
145145
/^https?:\/\//i.test(link.href) &&
146146
new RegExp(
147-
".(" + (optionsLink.downloadsExtensions || []).join("|") + ")",
147+
"\\.(" + (optionsLink.downloadsExtensions || []).join("|") + ")$",
148148
"i"
149149
).test(link.pathname)
150150
) {

0 commit comments

Comments
 (0)