projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e5591
)
Also accept numbers in WikiWords
author
Bernie Innocenti
<bernie@codewiz.org>
Mon, 2 Jun 2008 06:32:32 +0000
(08:32 +0200)
committer
Bernie Innocenti
<bernie@codewiz.org>
Mon, 2 Jun 2008 06:32:32 +0000
(08:32 +0200)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index 3b66445ab80b4665304db00481b344b31b4376e1..8bb4d366eabde261e4fdb104dcb7a3c73e1d3083 100755
(executable)
--- a/
geekigeeki.py
+++ b/
geekigeeki.py
@@
-28,7
+28,7
@@
from os import path, environ
# Regular expression defining a WikiWord
# (but this definition is also assumed in other places)
-word_re = re.compile(r"^\b((([A-Z][a-z
]+){2,}/)*([A-Z][a-z
]+){2,})\b$")
+word_re = re.compile(r"^\b((([A-Z][a-z
0-9]+){2,}/)*([A-Z][a-z0-9
]+){2,})\b$")
# FIXME: we accept stuff like foo/../bar and we shouldn't
file_re = re.compile(r"^\b([A-Za-z0-9_\-][A-Za-z0-9_\.\-/]*)\b$")
img_re = re.compile(r"^.*\.(png|gif|jpg|jpeg)$", re.IGNORECASE)