Skip to content

Commit

Permalink
Moved VERSION_NUMBER to ronin/support/text/patterns/software (closes
Browse files Browse the repository at this point in the history
 #554).
  • Loading branch information
postmodern committed Dec 12, 2024
1 parent 548c192 commit 5ff479e
Show file tree
Hide file tree
Showing 5 changed files with 905 additions and 867 deletions.
1 change: 1 addition & 0 deletions lib/ronin/support/text/patterns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
require 'ronin/support/text/patterns/file_system'
require 'ronin/support/text/patterns/network'
require 'ronin/support/text/patterns/pii'
require 'ronin/support/text/patterns/software'
require 'ronin/support/text/patterns/source_code'
5 changes: 0 additions & 5 deletions lib/ronin/support/text/patterns/numeric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ module Patterns
#
# @since 1.0.0
HEX_NUMBER = /(?:0x)?[0-9a-fA-F]+/

# Regular expression for finding version numbers in text.
#
# @since 1.0.0
VERSION_NUMBER = /\d+(?:\.\d+){1,3}(?:[-.]?[A-Za-z]+(?:[-.]?\d+)?)?/
end
end
end
Expand Down
37 changes: 37 additions & 0 deletions lib/ronin/support/text/patterns/software.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# frozen_string_literal: true
#
# Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# ronin-support is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ronin-support is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with ronin-support. If not, see <https://www.gnu.org/licenses/>.
#

module Ronin
module Support
module Text
#
# @since 0.3.0
#
module Patterns
#
# @group Software Version Patterns
#

# Regular expression for finding version numbers in text.
#
# @since 1.0.0
VERSION_NUMBER = /\d+(?:\.\d+){1,3}(?:[-.]?[A-Za-z]+(?:[-.]?\d+)?)?/
end
end
end
end
Loading

0 comments on commit 5ff479e

Please sign in to comment.