Sta 'NH' in slugs toe

This commit is contained in:
2018-05-08 09:25:15 +02:00
parent 6c892d6f1b
commit 183e021687

View File

@@ -46,7 +46,7 @@ class Model {
$text = str_replace($search, $replace, $text);
// Verwijder alle woorden van 3 letters, behalve BEL (BEL-combinatie etc)
$text = preg_replace('/\b(?!bel|fm)([a-z]{1,3})\b/u', '', $text);
$text = preg_replace('/\b(?!bel|fm|nh)([a-z]{1,3})\b/u', '', $text);
// Vervang alles dat niet een woord-karakter is (letter, cijfer), een streepje of spatie
$text = preg_replace('/[^\w_\-\s]/', '', $text);