Merge pull request #10057 from MikeMcQuaid/github_search_delete_prefix
utils/github: tweak search_code style.
This commit is contained in:
commit
68dbbc0a34
@ -317,7 +317,7 @@ module GitHub
|
||||
|
||||
matches.map do |match|
|
||||
# .sub workaround for GitHub returning preceding /
|
||||
match["path"] = match["path"].sub(%r{^/}, "")
|
||||
match["path"] = match["path"].delete_prefix("/")
|
||||
match
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user