summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-02-13 15:28:05 +0100
committerYorhel <git@yorhel.nl>2020-02-13 15:28:07 +0100
commit23fb02e36defa7660ee871dd9e650906b0d2d616 (patch)
treeef96a9aad699df8a42da33930af373d4ea69e177 /lib/VNDB/Handler
parentf95eab4d6547d402d79e443c5488d12b74650f74 (diff)
v2rw: WIP: Convert character pages
This uses an alternative (non-JS) approach to spoiler hiding, which is both much simpler to implement and properly handles all cases. Downside is that it requires a page reload. It also allows direct linking to a character page with a particular view, but I'm not entirely sure if this is a welcome feature. This is a WIP because it doesn't display instances yet.
Diffstat (limited to 'lib/VNDB/Handler')
-rw-r--r--lib/VNDB/Handler/Chars.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm
index cff84607..059c7b3f 100644
--- a/lib/VNDB/Handler/Chars.pm
+++ b/lib/VNDB/Handler/Chars.pm
@@ -12,7 +12,7 @@ use List::Util 'min';
our @EXPORT = ('charOps', 'charTable', 'charBrowseTable');
TUWF::register(
- qr{c([1-9]\d*)(?:\.([1-9]\d*))?} => \&page,
+ qr{oc([1-9]\d*)(?:\.([1-9]\d*))?} => \&page,
qr{c(?:([1-9]\d*)(?:\.([1-9]\d*))?/(edit|copy)|/new)}
=> \&edit,
qr{c/([a-z0]|all)} => \&list,