dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b919ca0
)
Make ugly regex slightly less ugly. You don't have to use / for the delimiter.
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Thu, 10 May 2007 01:07:10 +0000
(
01:07
+0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Thu, 10 May 2007 01:07:10 +0000
(
01:07
+0000)
includes/Linker.php
patch
|
blob
|
history
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
578cd09
..
f293a89
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-842,7
+842,7
@@
class Linker {
*/
private function formatAutocomments( $comment, $title = NULL, $local = false ) {
$match = array();
- while (preg_match('
/(.*)\/\*\s*(.*?)\s*\*\/(.*)/
', $comment,$match)) {
+ while (preg_match('
!(.*)/\*\s*(.*?)\s*\*/(.*)!
', $comment,$match)) {
$pre=$match[1];
$auto=$match[2];
$post=$match[3];