summaryrefslogtreecommitdiff
path: root/lib/extracts_path.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-23 09:27:36 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-23 09:33:20 -0600
commitf88ff0cc0c5c1db7089a5f0062a53d38eb27ebde (patch)
tree54f1501e16405636d62bf7e1af83a8b34d54951b /lib/extracts_path.rb
parent6f5cd03fcb63b379d218cf0b475f85f675dd9fb6 (diff)
downloadgitlab-ce-f88ff0cc0c5c1db7089a5f0062a53d38eb27ebde.tar.gz
Stylistic tweaks
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r--lib/extracts_path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index 1a6ad039bc0..9ece84cc469 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -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