Skip to content

Commit

Permalink
improve single / emphasis detection
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@236496 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Michele Tomaiuolo committed May 28, 2007
1 parent eb32dc9 commit 30eb776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Text/Wiki/Parse/Creole/Emphasis.php
Expand Up @@ -35,7 +35,7 @@ class Text_Wiki_Parse_Emphasis extends Text_Wiki_Parse {
*/

//var $regex = "/\/\/(.*?)\/\//";
var $regex = "/(?:\/\/(.+?)\/\/|(?:(?<=[\W_\xFF])\/(?! ))(.+?)(?:(?<! )\/(?=[\W_\xFF])))/";
var $regex = "/(?:\/\/(.+?)\/\/|(?:(?<=[\W_\xFF])\/(?![ \/]))(.+?)(?:(?<![ \/])\/(?=[\W_\xFF])))/";

/**
*
Expand Down

0 comments on commit 30eb776

Please sign in to comment.