Permalink
Browse files

Spaces, not tabs >:( thanks emacs

  • Loading branch information...
clintharrison committed Aug 5, 2012
1 parent ce6de91 commit 1c3207ee3485b8b7d798c9a419e5e59c877a5d45
Showing with 5 additions and 5 deletions.
  1. +5 −5 doi-bookmarklet.js
View
@@ -4,9 +4,9 @@
var regex = /\w?(?:doi:|hdl:(?:\/\/)?)\s*([0-9./a-z]+)\w?/i;
var match = regex.exec(selection);
if (match != null) {
- var doi = match[1];
- var tempAnchor = document.createElement('a');
- tempAnchor.href = proxyUrl;
- document.location = tempAnchor.protocol + '//dx.doi.org.' + tempAnchor.host + '/' + doi;
+ var doi = match[1];
+ var tempAnchor = document.createElement('a');
+ tempAnchor.href = proxyUrl;
+ document.location = tempAnchor.protocol + '//dx.doi.org.' + tempAnchor.host + '/' + doi;
}
- })();
+})();

0 comments on commit 1c3207e

Please sign in to comment.