We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 5e6490e commit 3f183a6Copy full SHA for 3f183a6
src/compiler/crystal/tools/doc/generator.cr
@@ -298,7 +298,7 @@ class Crystal::Doc::Generator
298
GIT_REMOTE_PATTERNS.each_key.compact_map(&.match(line)).first?
299
end.to_a
300
301
- @is_crystal_repo = git_matches.any? { |gr| gr.string =~ %r{github\.com[/:]crystal-lang/crystal} }
+ @is_crystal_repo = git_matches.any? { |gr| gr.string =~ %r{github\.com[/:]crystal-lang/crystal(?:\.git)?\s} }
302
303
origin = git_matches.find(&.string.starts_with?("origin")) || git_matches.first?
304
return unless origin
0 commit comments