summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-26 12:01:52 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-26 12:01:52 +0100
commit866dffab8c4a67134190a26343a8ab20be8662b5 (patch)
treec5dcea452c3ea5caa657ed39b2ec39b8f6b59d16 /src
parentf505ff7a857a15fd5c0040df1e02ffb838c30959 (diff)
Fix a typo.
Diffstat (limited to 'src')
-rw-r--r--src/mulk/benki/wiki.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mulk/benki/wiki.clj b/src/mulk/benki/wiki.clj
index 45affee..27a7c00 100644
--- a/src/mulk/benki/wiki.clj
+++ b/src/mulk/benki/wiki.clj
@@ -47,7 +47,7 @@
(fn [x]
(let [parens? (and (.startsWith x "(") (.endsWith x ")"))
uri (if parens?
- (subs x 1 (- (count subs) 2))
+ (subs x 1 (- (count x) 2))
x)]
(fmt nil "~a<a href=\"~a\" class=\"benkiautohref\">~a</a>~a"
(if parens? "(" "")