Changeset 72 for trunk/Phergie/Plugin/Acronym.php
- Timestamp:
- 02/25/08 06:55:08 (5 years ago)
- Files:
-
- 1 modified
-
trunk/Phergie/Plugin/Acronym.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Phergie/Plugin/Acronym.php
r71 r72 99 99 $message = $this->event->getArgument(1); 100 100 101 if (!preg_match('/((?:[A-Z]\.?){2,})\?/AD', $message, $acronym)) { 101 // Matches an optional "Nick: " followed by an acronym formatted as A.B.C. or ABC 102 if (!preg_match('/^(?:[A-Za-z0-9\[\]`|{}_-]+: )?((?:[A-Z]\.?){2,})\?$/', $message, $acronym)) { 102 103 return; 103 104 }