Skip to content

Commit

Permalink
Fix crystal_repo matching
Browse files Browse the repository at this point in the history
github.com/crystal-lang/crystal.* repos where matching and generating some Crystal constants as a consequence
  • Loading branch information
Brian J. Cardiff committed Mar 23, 2017
1 parent 5e6490e commit 3f183a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/doc/generator.cr
Expand Up @@ -298,7 +298,7 @@ class Crystal::Doc::Generator
GIT_REMOTE_PATTERNS.each_key.compact_map(&.match(line)).first?
end.to_a

@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} }

origin = git_matches.find(&.string.starts_with?("origin")) || git_matches.first?
return unless origin
Expand Down

0 comments on commit 3f183a6

Please sign in to comment.