Skip to content

Commit

Permalink
Fixed a typo in the Text::Patterns::VERSION_NUMBER regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Dec 8, 2024
1 parent a3731d8 commit 5a5b1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ronin/support/text/patterns/numeric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Patterns
# Regular expression for finding version numbers in text.
#
# @since 1.0.0
VERSION_NUMBER = /(<=[^\d]|^)\d+(?:\.\d+){1,3}(?:[-.]?[A-Za-z]+(?:[-.]?\d+)?)?/
VERSION_NUMBER = /(?<=[^\d]|^)\d+(?:\.\d+){1,3}(?:[-.]?[A-Za-z]+(?:[-.]?\d+)?)?/
end
end
end
Expand Down

0 comments on commit 5a5b1c1

Please sign in to comment.