Browse files

Fixed error in readme sample code

  • Loading branch information...
1 parent 950fc94 commit 6eb6d8a3b05bff9b0ebaebc7d84cc45e3754da65 @jeremyharris committed Apr 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
View
1 README.md
@@ -77,6 +77,7 @@ and passes one argument, the string to slug. It expects a string to be returned.
For example, to use a custom function:
function my_custom_iconv_slugger($str) {
+ $replacement = '_';
$str = preg_replace('/[^a-z0-9 ]/i', '', iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str));
$quotedReplacement = preg_quote($replacement, '/');
$merge = array(

0 comments on commit 6eb6d8a

Please sign in to comment.