mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Stylistic tweaks
This commit is contained in:
@ -42,7 +42,7 @@ module ExtractsPath
|
||||
|
||||
return pair unless @project
|
||||
|
||||
if id =~ /^([[:alnum:]]{40})(.+)/
|
||||
if id =~ /^(\h{40})(.+)/
|
||||
# If the ref appears to be a SHA, we're done, just split the string
|
||||
pair = $~.captures
|
||||
else
|
||||
|
Reference in New Issue
Block a user