From a2867c1d637c36bc18e5a3b58518afe108e1c152 Mon Sep 17 00:00:00 2001 From: xxComatoastxx Date: Wed, 4 Jan 2023 02:45:54 -0800 Subject: [PATCH] Fixed missing colon in character class line: 2001/2048 --- inc/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index 5565d951..c82a4c93 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1998,10 +1998,10 @@ function markup(&$body, $track_cites = false, $op = false) { $tracked_cites = array(); // Cites - if (isset($board) && preg_match_all('/(^|\s)>>(\d+?)((?=[\s,.)?!])|$)/m', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) { + if (isset($board) && preg_match_all('/(^|\s)>>(\d+?)((?=[\s,.:)?!&])|$)/m', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) { if (count($cites[0]) > $config['max_cites']) { error($config['error']['toomanycites']); - } + } $skip_chars = 0; $body_tmp = $body; @@ -2045,7 +2045,7 @@ function markup(&$body, $track_cites = false, $op = false) { } // Cross-board linking - if (preg_match_all('/(^|\s)>>>\/(' . $config['board_regex'] . 'f?)\/(\d+)?((?=[\s,.)?!])|$)/um', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) { + if (preg_match_all('/(^|\s)>>>\/(' . $config['board_regex'] . 'f?)\/(\d+)?((?=[\s,.:)?!&])|$)/um', $body, $cites, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) { if (count($cites[0]) > $config['max_cites']) { error($config['error']['toomanycross']); }