diff options
author | anekos | 2011-06-22 18:21:10 +0900 |
---|---|---|
committer | anekos | 2011-06-22 18:21:10 +0900 |
commit | 3659e2ce3d368a08bfc497836a6d00a59df2edab (patch) | |
tree | b7e91d5fa660e549f003029fa58060ffaa670f86 /stella.js | |
parent | 85445f7739ef54ee68f0b97ce2f6689319b5b557 (diff) | |
download | vimperator-plugins-3659e2ce3d368a08bfc497836a6d00a59df2edab.tar.bz2 |
芋臭い RegExp の仕様変更に対応
Diffstat (limited to 'stella.js')
-rw-r--r-- | stella.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -999,7 +999,7 @@ Thanks: } YouTubeUserChannelPlayer.getIDfromURL = function (url) let ([_, r] = url.match(/\/([^\/]+)($|[\?]+)/)) r; - YouTubeUserChannelPlayer.isVideoURL = function (url) /^https?:\/\/(www\.)?youtube\.com\/watch\?.+/(url); + YouTubeUserChannelPlayer.isVideoURL = function (url) /^https?:\/\/(www\.)?youtube\.com\/watch\?.+/.test(url); YouTubeUserChannelPlayer.prototype = { __proto__: YouTubePlayer.prototype, @@ -1798,7 +1798,7 @@ Thanks: return U.raiseNotSupportedPage(); let arg = args.literalArg; - let index = (/^\d+:/)(arg) && parseInt(arg, 10); + let index = /^\d+:/.test(arg) && parseInt(arg, 10); if (index > 0) arg = lastCompletions[index - 1].command; let url = self.player.has('makeURL', 'x') ? makeRelationURL(self.player, arg) : arg; |