aboutsummaryrefslogtreecommitdiffstats
path: root/googledocs.js
diff options
context:
space:
mode:
authordrry2008-12-08 09:39:07 +0000
committerdrry2008-12-08 09:39:07 +0000
commita438eaa5365c38fbac2c8327ec63995eec9f2efc (patch)
tree0ff22af072fa0756494fecf7ad604df8b0f8d4a1 /googledocs.js
parent66a625ad7e51a04bd0e3b672169cce632095990b (diff)
downloadvimperator-plugins-a438eaa5365c38fbac2c8327ec63995eec9f2efc.tar.bz2
* fixed a regex.
* et cetera. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26119 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'googledocs.js')
-rw-r--r--googledocs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/googledocs.js b/googledocs.js
index e325b72..ddf51a4 100644
--- a/googledocs.js
+++ b/googledocs.js
@@ -23,7 +23,7 @@
( function () {
hints.addMode(
liberator.globalVariables.googledocs_mapping || 'd',
- 'operate google doc',
+ 'operate Google Docs',
function (element) {
if (element.localName.toLowerCase() === 'div') {
let mousedown = document.createEvent('MouseEvent');
@@ -58,7 +58,7 @@ hints.addMode(
}
},
function () {
- if (!/http:\/\/docs\.google\.com\//.test(buffer.URL)) return;
+ if (!/^https?:\/\/docs\.google\.com\//.test(buffer.URL)) return;
const divClassNames = [
'goog-listitem-content',
'goog-listheaderitem-content',