From: root Date: Fri, 29 Oct 2010 18:26:45 +0000 (-0400) Subject: slug regexp X-Git-Tag: 0.5~353 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=186a6773447f3b300f2b04a31e016780f0e2b18b;p=ipf.git slug regexp --- diff --git a/ipf/utils.php b/ipf/utils.php index 584b82b..50b33fd 100644 --- a/ipf/utils.php +++ b/ipf/utils.php @@ -250,7 +250,7 @@ class IPF_Utils { static function toSlug($slug){ if ($slug){ - return strtolower(preg_replace('/[^A-Z^a-z^0-9^\/]+/', '-', $slug)); + return strtolower(preg_replace('/[^A-Z^a-z^0-9^\/\_]+/', '-', $slug)); } return $slug; }