Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/index.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake
index dc47a9ce..c5c933fe 100644
--- a/lib/tasks/index.rake
+++ b/lib/tasks/index.rake
@@ -200,7 +200,7 @@ def index_doc(filter_tags, doc_list, get_content)
links = cmd_list[category].map do |cmd, attr|
if cmd_file = tag_files.detect { |ent| ent.first == "Documentation/#{cmd}.txt" }
content = get_content.call(cmd_file.second)
- section = content.match(/^git.*\(([1-9])\)/)[1]
+ section = content.match(/^[a-z0-9-]+\(([1-9])\)/)[1]
if match = content.match(/NAME\n----\n\S+ - (.*)$/)
"linkgit:#{cmd}[#{section}]::\n\t#{attr == 'deprecated' ? '(deprecated) ' : ''}#{match[1]}\n"
end