mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 18:47:20 +01:00
handle post citations with trailing punctuation
This commit is contained in:
parent
7e473b3af1
commit
fd407b871d
@ -1215,7 +1215,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cites
|
// Cites
|
||||||
if(isset($board) && preg_match_all('/(^|\s)>>(\d+?)(\s|$)/', $body, $cites)) {
|
if(isset($board) && preg_match_all('/(^|\s)>>(\d+?)([\s,.]|$)/', $body, $cites)) {
|
||||||
if(count($cites[0]) > $config['max_cites']) {
|
if(count($cites[0]) > $config['max_cites']) {
|
||||||
error($config['error']['toomanycites']);
|
error($config['error']['toomanycites']);
|
||||||
}
|
}
|
||||||
@ -1237,7 +1237,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cross-board linking
|
// Cross-board linking
|
||||||
if(preg_match_all('/(^|\s)>>>\/(\w+?)\/(\d+)?(\s|$)/', $body, $cites)) {
|
if(preg_match_all('/(^|\s)>>>\/(\w+?)\/(\d+)?([\s,.]|$)/', $body, $cites)) {
|
||||||
if(count($cites[0]) > $config['max_cites']) {
|
if(count($cites[0]) > $config['max_cites']) {
|
||||||
error($config['error']['toomanycross']);
|
error($config['error']['toomanycross']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user