Class: Octopolo::SemverTagScrubber
- Inherits:
-
Object
- Object
- Octopolo::SemverTagScrubber
- Defined in:
- lib/octopolo/semver_tag_scrubber.rb
Class Method Summary collapse
Class Method Details
.scrub_prefix(tag) ⇒ Object
4 5 6 |
# File 'lib/octopolo/semver_tag_scrubber.rb', line 4 def self.scrub_prefix(tag) scrub_via_regexp(tag, /\A[a-z]*/i) end |
.scrub_suffix(tag) ⇒ Object
8 9 10 |
# File 'lib/octopolo/semver_tag_scrubber.rb', line 8 def self.scrub_suffix(tag) scrub_via_regexp(tag, /[a-z]*\z/i) end |