Skip to content
Snippets Groups Projects
Commit f4b3aca3 authored by Harry Fuecks's avatar Harry Fuecks
Browse files

Alternative fix for #384

The bug with emphasis syntax clashing with URLs did still occur with
protocols different from http or ftp. This patch might be a better
solution.

I had to use [^\x00]* instead of .* - for some reason the later won't
work properly in this case. It means people won't be able to use ASCII
NUL characters inside an emphasis.

The other thing that won't work is this;

Won't work: //semi colon here>://

People will need to make sure there is at least a space - this will work;

Works //semi colon here>: //

darcs-hash:20050806151204-56ad0-532806af57801f5fa4536add32175089e625a0d4.gz
parent 355a0d2c
No related branches found
No related tags found
No related merge requests found
......@@ -321,7 +321,7 @@ class Doku_Parser_Mode_formatting extends Doku_Parser_Mode {
),
'emphasis'=> array (
'entry'=>'//(?=.*(?<!http:|ftp:)//)', //hack for bug #384
'entry'=>'//(?=[^\x00]*[^:]//)', //hack for bug #384
'exit'=>'//',
'sort'=>80
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment