diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-04-04 18:45:29 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-04-04 18:45:29 +0000 |
commit | a0321594fb72ab1d215204f1838d2593e0b24f95 (patch) | |
tree | 306adc91779b95472523874e51ba531185b68b1d | |
parent | 46302e698d97d9bf52fabac4858d954cb650bfb8 (diff) |
use [:alnum:]
-rwxr-xr-x | ikiwiki | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -21,7 +21,7 @@ sub getconfig () { #{{{ wiki_file_prune_regexp => qr{((^|/).svn/|\.\.|^\.|\/\.|\.html?$|\.rss$)}, wiki_link_regexp => qr/\[\[(?:([^\s\]\|]+)\|)?([^\s\]]+)\]\]/, wiki_processor_regexp => qr/\[\[(\w+)\s+([^\]]+)\]\]/, - wiki_file_regexp => qr/(^[-A-Za-z0-9_.:\/+]+$)/, + wiki_file_regexp => qr/(^[-[:alnum:]_.:\/+]+$)/, verbose => 0, wikiname => "wiki", default_pageext => ".mdwn", @@ -277,7 +277,7 @@ sub pagetitle ($) { #{{{ sub titlepage ($) { #{{{ my $title=shift; $title=~y/ /_/; - $title=~s/([^-A-Za-z0-9_:+\/.])/"__".ord($1)."__"/eg; + $title=~s/([^-[:alnum:]_:+\/.])/"__".ord($1)."__"/eg; return $title; } #}}} |