summaryrefslogtreecommitdiff
path: root/lib/VNDB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-08-31 08:57:19 +0200
committerYorhel <git@yorhel.nl>2020-08-31 08:57:19 +0200
commit537c335f9df183398aee435246afefb322069aa7 (patch)
tree2e9fced9138005b3ca9c6633ca8fde8825b9f9bd /lib/VNDB
parent287e2ebd2aa012e992dc2f2b755ceb74298a95f3 (diff)
BBCode: Add support for w+ and w+.+ dblinks
Diffstat (limited to 'lib/VNDB')
-rw-r--r--lib/VNDB/BBCode.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/BBCode.pm b/lib/VNDB/BBCode.pm
index fe3a43d7..a5050eab 100644
--- a/lib/VNDB/BBCode.pm
+++ b/lib/VNDB/BBCode.pm
@@ -139,8 +139,8 @@ sub parse {
while($raw =~ m{(?:
\[ \/? (?i: b|i|u|s|spoiler|quote|code|url|raw ) [^\s\]]* \] | # tag
d[1-9][0-9]* \# [1-9][0-9]* (?: \.[1-9][0-9]* )? | # d+#+[.+]
- [tdvprcs][1-9][0-9]*\.[1-9][0-9]* | # v+.+
- [tdvprcsugi][1-9][0-9]* | # v+
+ [tdvprcsw][1-9][0-9]*\.[1-9][0-9]* | # v+.+
+ [tdvprcsugiw][1-9][0-9]* | # v+
(?:https?|ftp)://[^><"\n\s\]\[]+[\d\w=/-] # link
)}xg) {
my $token = $&;