Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
Fixed error in readme sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Apr 19, 2012
1 parent 950fc94 commit 6eb6d8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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(
Expand Down

0 comments on commit 6eb6d8a

Please sign in to comment.