From 6d4475036a41d6ccada7b5f5adf809e20fcd97ef Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 12 Jun 2005 20:35:57 +0200 Subject: lexer support for subpatterns, fixed windowsshare links #368 darcs-hash:20050612183557-9977f-fe071d83503f6e324255200bea3e7b8d76db7e31.gz --- inc/parser/parser.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'inc/parser/parser.php') diff --git a/inc/parser/parser.php b/inc/parser/parser.php index 5f40856fb..c27648db2 100644 --- a/inc/parser/parser.php +++ b/inc/parser/parser.php @@ -897,14 +897,7 @@ class Doku_Parser_Mode_windowssharelink extends Doku_Parser_Mode { var $pattern; function preConnect() { - - $ltrs = '\w'; - $gunk = '/\#~:.?+=&%@!\-'; - $punc = '.:?\-;,'; - $host = $ltrs.$punc; - $any = $ltrs.$gunk.$punc; - - $this->pattern = "[$gunk$punc\s]\\\\\\\\[$host]+?\\\\[$any]+?(?=['.$punc.']*[^'.$any.'])"; + $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w$]+)+"; } function connectTo($mode) { -- cgit v1.2.3