Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Commit

Permalink
fix fug of regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
dong-zeyu committed Dec 29, 2017
1 parent ef56587 commit e1504d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ chrome.runtime.sendMessage({command: "storage"}, function(response) {
if(table != null) {
var a = table.getElementsByTagName('a');
for(var i = 0; i < a.length; i++) {
a.item(i).setAttribute('href', a.item(i).getAttribute('href').replace(/javascript:JsMod\('(.*)',.*/, "javascript:open('$1');"));
a.item(i).setAttribute('href', a.item(i).getAttribute('href').replace(/javascript:JsMod\('(.*)'.*/, "javascript:open('$1');"));
}
}

Expand Down

0 comments on commit e1504d0

Please # to comment.