Skip to content

Commit

Permalink
Remove unicode <200b> characters from $match
Browse files Browse the repository at this point in the history
Occasionally Zero Width Spaces appear between the '>' and the
indexnumber and the tag appears to be not working without any apparent
reason. This PR removes those Zero Width Spaces.
  • Loading branch information
micgro42 committed Jun 16, 2015
1 parent 4c1404b commit dca7536
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syntax/tag.php
Expand Up @@ -42,6 +42,7 @@ function connectTo($mode) {
*/
function handle($match, $state, $pos, Doku_Handler $handler) {
$match = substr($match, 14, -2);
$match = str_replace("\xE2\x80\x8B", "", $match);
return array($match);
}

Expand Down

0 comments on commit dca7536

Please sign in to comment.