Merge pull request #8125 from samford/modify-stringtoken-pattern

Modify StringToken::PATTERN to fix comparison
This commit is contained in:
Mike McQuaid 2020-07-29 11:28:32 +01:00 committed by GitHub
commit a7e9b474cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ class Version
NULL_TOKEN = NullToken.new.freeze
class StringToken < Token
PATTERN = /[a-z]+[0-9]*/i.freeze
PATTERN = /[a-z]+/i.freeze
def initialize(value)
@value = value.to_s