Class: Dependabot::Elm::Version
- Inherits:
-
Version
- Object
- Version
- Dependabot::Elm::Version
- Defined in:
- lib/dependabot/elm/version.rb
Constant Summary collapse
- VERSION_PATTERN =
"[0-9]+\\.[0-9]+\\.[0-9]+"
- VERSION_PATTERN_REGEX =
/\A#{VERSION_PATTERN}\Z/
Class Method Summary collapse
Class Method Details
.correct?(version) ⇒ Boolean
16 17 18 |
# File 'lib/dependabot/elm/version.rb', line 16 def self.correct?(version) version.to_s.match?(VERSION_PATTERN_REGEX) end |