Skip to content
Snippets Groups Projects
Commit f49e04d5 authored by DJ Mountney's avatar DJ Mountney
Browse files

Use full regex part name :edition insted of :ed

In OmnibusGitLabVersion
parent 8d25a0f8
No related branches found
No related tags found
1 merge request!129Parse version strings using the omnibus version syntax
Pipeline #
Loading
Loading
@@ -8,7 +8,7 @@ class OmnibusGitLabVersion < Version
(\+)?
(?<rc>rc(?<rc_number>\d*))?
(\.)?
(?<ed>ce|ee)?
(?<edition>ce|ee)?
(\.\d+)?\z
}x
 
Loading
Loading
@@ -17,7 +17,7 @@ class OmnibusGitLabVersion < Version
end
 
def edition
@edition ||= extract_from_version(:ed, fallback: 'ce')
@edition ||= extract_from_version(:edition, fallback: 'ce')
end
 
def tag
Loading
Loading
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