Allow forward slash separators in Str::classify()

This commit is contained in:
Ben Corlett 2012-12-06 11:32:18 +11:00
parent 8ff052cbdb
commit 438caf2631
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ public static function ascii($value)
*/ */
public static function classify($value) public static function classify($value)
{ {
$search = array('_', '-', '.'); $search = array('_', '-', '.', '/');
return str_replace(' ', '_', static::title(str_replace($search, ' ', $value))); return str_replace(' ', '_', static::title(str_replace($search, ' ', $value)));
} }