Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Fixed postprod canonization for names with weird characters at start/…
Browse files Browse the repository at this point in the history
…end.

Like, say, Okla-Holmes-a!
  • Loading branch information
cscott authored and Andrew Lin committed Dec 18, 2011
1 parent 93492e6 commit 2bdf042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.php
Expand Up @@ -45,7 +45,7 @@ function postprodCanon($s)
$s = strtolower(trim($s)); $s = strtolower(trim($s));
$s = preg_replace('/[\']([st])\b/', '$1', $s); $s = preg_replace('/[\']([st])\b/', '$1', $s);
$s = preg_replace('/[^a-z0-9]+/', '_', $s); $s = preg_replace('/[^a-z0-9]+/', '_', $s);
return $s; return trim($s, "_");
} }


function isStatusInPostProd($sid) function isStatusInPostProd($sid)
Expand Down

0 comments on commit 2bdf042

Please sign in to comment.