diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:27:36 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:33:20 -0600 |
commit | f88ff0cc0c5c1db7089a5f0062a53d38eb27ebde (patch) | |
tree | 54f1501e16405636d62bf7e1af83a8b34d54951b /lib/extracts_path.rb | |
parent | 6f5cd03fcb63b379d218cf0b475f85f675dd9fb6 (diff) | |
download | gitlab-ce-f88ff0cc0c5c1db7089a5f0062a53d38eb27ebde.tar.gz |
Stylistic tweaks
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r-- | lib/extracts_path.rb | 2 |
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 |