diff options
author | Egil Moeller <egil.moller@freecode.no> | 2010-04-14 23:53:36 +0200 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2010-04-14 23:53:36 +0200 |
commit | 6bd555cb7ff5f45b041eab0179fa758e50a5158c (patch) | |
tree | 0aa17789bc172cad19c541edf68b70cf803c83a8 /etherpad/src/plugins/urlIndexer/hooks.js | |
parent | 77ab66b1a1971c12098287725cdf01aaeeff280d (diff) | |
download | etherpad-6bd555cb7ff5f45b041eab0179fa758e50a5158c.tar.gz etherpad-6bd555cb7ff5f45b041eab0179fa758e50a5158c.tar.xz etherpad-6bd555cb7ff5f45b041eab0179fa758e50a5158c.zip |
Git the urlIndexer to nearly work (the links for tags / queries are all wrong)
Diffstat (limited to 'etherpad/src/plugins/urlIndexer/hooks.js')
-rw-r--r-- | etherpad/src/plugins/urlIndexer/hooks.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etherpad/src/plugins/urlIndexer/hooks.js b/etherpad/src/plugins/urlIndexer/hooks.js index 1429895..45d37f1 100644 --- a/etherpad/src/plugins/urlIndexer/hooks.js +++ b/etherpad/src/plugins/urlIndexer/hooks.js @@ -1,6 +1,11 @@ import("etherpad.log"); import("dispatch.{Dispatcher,PrefixMatcher,forward}"); import("sqlbase.sqlobj"); +import("plugins.urlIndexer.controllers.urlBrowser"); + +function handlePath() { + return [[PrefixMatcher('/ep/url'), forward(urlBrowser)]]; +} REGEX_WORDCHAR = /[\u0030-\u0039\u0041-\u005A\u0061-\u007A\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u1FFF\u3040-\u9FFF\uF900-\uFDFF\uFE70-\uFEFE\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDC]/; REGEX_URLCHAR = new RegExp('('+/[-:@a-zA-Z0-9_.,~%+\/\\?=&#;()$]/.source+'|'+REGEX_WORDCHAR.source+')'); |