Changeset 52
- Timestamp:
- 02/11/08 16:59:55 (10 months ago)
- Files:
-
- trunk/Phergie/Event/Handler/Acronym.php (modified) (3 diffs)
- trunk/Phergie/Event/Handler/Logging.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Event/Handler/Acronym.php
r50 r52 64 64 } 65 65 66 if (!preg_match('/ (?:^|\s+)((?:[A-Z]\.?){2,})\?/', $event->getArgument(1), $acronym)) {66 if (!preg_match('/^(?:[^\s:]+\s*:?\s*)?((?:[A-Z]\.?){2,})\?$/', $event->getArgument(1), $acronym)) { 67 67 return; 68 68 } … … 95 95 do { 96 96 $count = preg_match( 97 '/<td width="65%"[^>]+>([^<]+)</i', 98 $contents, 99 $match, 97 '/<td width="65%"[^>]+>([^<]+)</i', 98 $contents, 99 $match, 100 100 PREG_OFFSET_CAPTURE, 101 101 $offset … … 105 105 $offset = $match[1][1]; 106 106 } 107 } while (($this->_limit == 0 || count($matches) < $this->_limit) && $count == 1); 107 } while (($this->_limit == 0 || count($matches) < $this->_limit) && $count == 1); 108 108 109 109 if (count($matches) == 0) {