hyphens instead of underscores
This commit is contained in:
parent
2c145c0d22
commit
c23e22a3b4
2 changed files with 4 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ sub makeUrlCompliant {
|
|||
$value =~ s/\s+$//; #removes trailing whitespace
|
||||
$value =~ s/^\s+//; #removes leading whitespace
|
||||
$value =~ s/^\\//; #removes leading slash
|
||||
$value =~ s/ /_/g; #replaces whitespace with underscores
|
||||
$value =~ s/ /-/g; #replaces whitespace with hyphens
|
||||
$value =~ s/\.$//; #removes trailing period
|
||||
$value =~ s/[^A-Za-z0-9\-\.\_\/]//g; #removes all funky characters
|
||||
$value =~ s/^\///; #removes a preceeding /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue