Ignore:
Timestamp:
02/26/08 14:07:20 (4 years ago)
Author:
hverton
Message:

updated the regex to detect wikiwords, to handle periods, comma's and dashes as terminator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/forum_functions_include.php

    r1291 r1305  
    400400        $result = dbquery("SELECT DISTINCT tag FROM ".$db_prefix."wiki_pages"); 
    401401        while ($data = dbarray($result)) { 
    402             $search[] = "/([[:space:]]|=|^)?(".$data['tag'].")([[:space:]]+?|\]|$)/i"; 
     402            $search[] = "/([[:space:]]|=|^)?(".$data['tag'].")([[:space:]\.\,-]+?|\]|$)/i"; 
    403403            $replace[] = "\\1[wiki]\\2[/wiki]\\3"; 
    404404        } 
Note: See TracChangeset for help on using the changeset viewer.