You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by me...@apache.org on 2015/10/25 12:43:56 UTC
mesos git commit: Fixed link conversion regexp in website.
Repository: mesos
Updated Branches:
refs/heads/master c7d1e8055 -> ed29afc15
Fixed link conversion regexp in website.
The previous regexp was:
/\((.*)(\.md)\)/
Given text like:
Text (comment): [link](foo.md)
This will greedily match ".*", so \1 is bound to "comment): [link](foo",
which seems unlikely to be the desired result.
Review: https://reviews.apache.org/r/39385
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ed29afc1
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ed29afc1
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ed29afc1
Branch: refs/heads/master
Commit: ed29afc159d287cef0ff43c97f10828bd07bc6d1
Parents: c7d1e80
Author: Neil Conway <ne...@gmail.com>
Authored: Sun Oct 25 04:35:34 2015 -0700
Committer: Adam B <ad...@mesosphere.io>
Committed: Sun Oct 25 04:36:54 2015 -0700
----------------------------------------------------------------------
site/Rakefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/ed29afc1/site/Rakefile
----------------------------------------------------------------------
diff --git a/site/Rakefile b/site/Rakefile
index 9fe4730..9483348 100644
--- a/site/Rakefile
+++ b/site/Rakefile
@@ -33,7 +33,7 @@ task :update_docs do
puts "working on: #{doc}"
IO.write(doc, File.open(doc) { |f|
f.read
- .gsub(/\((.*)(\.md)\)/, '(/documentation/latest/\1/)')
+ .gsub(/\(([^(]+)(\.md)\)/, '(/documentation/latest/\1/)')
.gsub(/\(images\/(.*)\)/, '(/assets/img/documentation/\1)')
})
}