Merge pull request #1227 from SamBrishes/patch-002

Allow dots in URL
This commit is contained in:
Diego Najar 2020-07-07 10:05:24 +02:00 committed by GitHub
commit bbb714bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ class Text {
}
}
$string = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $string);
$string = preg_replace("/[^a-zA-Z0-9\/_|+. -]/", '', $string);
$string = self::lowercase($string);
$string = preg_replace("/[\/_|+ -]+/", $separator, $string);
$string = trim($string, '-');