OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
586c355
)
Web::Contorller::API::Story: fix related story url regex
author
hylom
<hylom@users.osdn.me>
Mon, 10 Jun 2019 07:17:22 +0000
(07:17 +0000)
committer
hylom
<hylom@users.osdn.me>
Mon, 10 Jun 2019 07:17:22 +0000
(07:17 +0000)
src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
b/src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
index
18ddf67
..
87a63c1
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
+++ b/
src/newslash_web/lib/Newslash/Web/Controller/API/Story.pm
@@
-158,7
+158,7
@@
sub post {
my @relateds = split(/\s+/, $related_string);
my $related_sids = [];
for my $related (@relateds) {
- if ($related =~ m|^.*(\d\d/\d\d/\d\d/\d+)/|) {
+ if ($related =~ m|^.*(\d\d/\d\d/\d\d/\d+)/
?
|) {
push @$related_sids, $1;
}
}