Skip to content

Commit

Permalink
Use \S to match the version string in a version constraint.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Dec 9, 2024
1 parent db3d75a commit ca38ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ronin/support/software/version_constraint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class VersionConstraint
def initialize(string)
@string = string

if (match = string.match(/\A(?:(?<operator>>=|>|<=|<|=)?\s*)(?<version>.+)\z/))
if (match = string.match(/\A(?:(?<operator>>=|>|<=|<|=)?\s*)(?<version>\S+)\z/))
@operator = match[:operator] || '='
@version = Version.new(match[:version])
else
Expand Down

0 comments on commit ca38ab9

Please sign in to comment.