From 092158fee02c3516ae08f7efcef8f1774bf823e5 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 26 Sep 2019 13:51:11 +0200 Subject: Disallow usernames that look like DB identifiers + minor BBCode fix A '-' before or after a DB identifier now counts as a "word character", meaning in "d5-something" won't turn that "d5" into a link. --- util/bbcode-test.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/bbcode-test.pl b/util/bbcode-test.pl index 1100b34e..0ad0f3ea 100755 --- a/util/bbcode-test.pl +++ b/util/bbcode-test.pl @@ -109,9 +109,9 @@ my @tests = ( 'd3 d1.3 d2#4 d5#6.7', 'd3 d1.3 d2#4 d5#6.7', - 'v17 text dds16v21 more text1 v9', - 'v17 text dds16v21 more text1 v9', - 'v17 text dds16v21 more text1 v9', + 'v17 text dds16v21 more text1 v9 _d5_ d3-', + 'v17 text dds16v21 more text1 v9 _d5_ d3-', + 'v17 text dds16v21 more text1 v9 _d5_ d3-', # https://vndb.org/t2520.233 '[From[url=http://densetsu.com/display.php?id=468&style=alphabetical] Anime Densetsu[/url]]', -- cgit v1.2.3