summaryrefslogtreecommitdiff
path: root/inc/parser/parser.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/parser.php')
-rw-r--r--inc/parser/parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/parser.php b/inc/parser/parser.php
index 22f836709..9cc257c02 100644
--- a/inc/parser/parser.php
+++ b/inc/parser/parser.php
@@ -623,9 +623,9 @@ class Doku_Parser_Mode_acronym extends Doku_Parser_Mode {
}
function preConnect() {
- $bound = '[\x00-\x2f\x3a-\x3f\x5b-\x7f]';
+ $bound = '[\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]';
$acronyms = array_map('Doku_Lexer_Escape',$this->acronyms);
- $this->pattern = '(?<='.$bound.')(?:'.join('|',$acronyms).')(?='.$bound.')';
+ $this->pattern = '(?<=^|'.$bound.')(?:'.join('|',$acronyms).')(?='.$bound.')';
}
function connectTo($mode) {