aboutsummaryrefslogtreecommitdiffstats
path: root/feedSomeKeys_3.js
diff options
context:
space:
mode:
authoranekos2010-06-23 07:17:38 +0000
committeranekos2010-06-23 07:17:38 +0000
commit487316b38da590edff058ea261fcc12473d75f71 (patch)
tree077086041d0673123f3d6a1e096ff00791cf7d12 /feedSomeKeys_3.js
parent2085a2cd899c737e9c80ffe1486ea55b5bc7d6a3 (diff)
downloadvimperator-plugins-487316b38da590edff058ea261fcc12473d75f71.tar.bz2
ドメインとURL用の正規表現の最初に ^ をつけるように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37857 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'feedSomeKeys_3.js')
-rwxr-xr-xfeedSomeKeys_3.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/feedSomeKeys_3.js b/feedSomeKeys_3.js
index 9be4052..18bf2b4 100755
--- a/feedSomeKeys_3.js
+++ b/feedSomeKeys_3.js
@@ -514,8 +514,8 @@ let INFO = <>
if (map.matchingUrls && !uniq[map.matchingUrls])
];
if (currentURL) {
- result.unshift([util.escapeRegex(buffer.URL), 'Current URL']);
- result.unshift([util.escapeRegex(content.document.domain), 'Current domain']);
+ result.unshift(['^' + util.escapeRegex(buffer.URL), 'Current URL']);
+ result.unshift(['^' + util.escapeRegex(content.document.domain), 'Current domain']);
}
return result;
};