Skip to content

Commit 3f183a6

Browse files
author
Brian J. Cardiff
committedMar 23, 2017
Fix crystal_repo matching
github.com/crystal-lang/crystal.* repos where matching and generating some Crystal constants as a consequence
1 parent 5e6490e commit 3f183a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/compiler/crystal/tools/doc/generator.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class Crystal::Doc::Generator
298298
GIT_REMOTE_PATTERNS.each_key.compact_map(&.match(line)).first?
299299
end.to_a
300300

301-
@is_crystal_repo = git_matches.any? { |gr| gr.string =~ %r{github\.com[/:]crystal-lang/crystal} }
301+
@is_crystal_repo = git_matches.any? { |gr| gr.string =~ %r{github\.com[/:]crystal-lang/crystal(?:\.git)?\s} }
302302

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

0 commit comments

Comments
 (0)
Please sign in to comment.