Skip to content
Snippets Groups Projects
Unverified Commit be893d5a authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #10055 from MikeMcQuaid/fix-github-search

Fix GitHub search behaviour change
parents 4067b4d9 48c0c673
No related branches found
No related tags found
No related merge requests found
......@@ -312,7 +312,14 @@ module GitHub
end
def search_code(**qualifiers)
search("code", **qualifiers)
matches = search("code", **qualifiers)
return matches if matches.blank?
matches.map do |match|
# .sub workaround for GitHub returning preceding /
match["path"] = match["path"].sub(%r{^/}, "")
match
end
end
def issues_for_formula(name, tap: CoreTap.instance, tap_full_name: tap.full_name, state: nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment