r44475 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r44474
|
r44475
|
r44476
>
Date:
23:04, 11 December 2008
Author:
vyznev
Status:
ok (
Comments
)
Tags:
Comment:
stricter parsing for readability, reliability and to (hopefully) fix breakage for users that go by their e-mail address only
Modified paths:
/trunk/tools/wikibugs/wikibugs
(modified) (
history
)
Diff
[
purge
]
Index: trunk/tools/wikibugs/wikibugs
—
—
@@ -55,9 +55,9 @@
56
56
$/ = "";
57
57
# extract and remove the comment section
58
58
my ($haschanges, $user);
59
- my $comment = $contents =~ s/\-+\s*Comment\s#\d+\sfrom\s.*?\s<(.*?)\@.*//s;
59
+ my $comment = $contents =~ s/^--- Comment #\d+ from (?-s:.*?<)?(\S+)\@.*//ms;
60
60
if($comment) {
61
- $user = $1;
61
+ $user = $1;
62
62
} else {
63
63
$user = 'N/A' # shouldn't be possible'
64
64
}
Comments
#
Comment by
Brion VIBBER
(
talk
|
contribs
)
00:06, 12 December 2008
woohoo!
Status & tagging log
00:06, 12 December 2008
Brion VIBBER
(
talk
|
contribs
)
changed the
status
of r44475
[
removed:
new
added:
ok]