From e57b42049816037d91781f56009f37d0cc33f33e Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 12 Sep 2011 19:44:37 +0900 Subject: $U.escapeRegex 追加 --- _libly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_libly.js') diff --git a/_libly.js b/_libly.js index 187e3f0..b2a558d 100644 --- a/_libly.js +++ b/_libly.js @@ -245,8 +245,8 @@ libly.$U = {//{{{ let pluginPath; Error('hoge').stack.split(/\n/).some( function (s) - let (m = s.match(/^\(\)@chrome:\/\/liberator\/content\/liberator\.js -> (.+):\d+$/)) - (m && (pluginPath = m[1])) + let (m = s.match(/^(?:\(\))?@chrome:\/\/liberator\/content\/liberator\.js -> (.+):\d+$/)) + (m && (pluginPath = m[1].replace(/\?.*$/, ''))) ); return pluginPath; } -- cgit v1.2.3