Permalink
Browse files

Fixed postprod canonization for names with weird characters at start/…

…end.

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

0 comments on commit 2bdf042

Please sign in to comment.