Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add ref to Ronin regexp + remove duplicate example #15

Merged
merged 4 commits into from
Sep 11, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/ronin/fuzzing/core_ext/string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ class String
# A given string set was not a String, Symbol or Enumerable.
# A given string set length was not an Integer or Enumerable.
#
# @example Generate Strings with ranges of repeating sub-strings:
#
# @example Generate Strings with three alpha chars and one numeric chars:
# String.generate([:alpha, 3], :numeric) do |password|
# puts password
Expand Down Expand Up @@ -140,7 +138,8 @@ def repeating(lengths,&block)
# Incrementally fuzzes the String.
#
# @param [Hash{Regexp,String,Symbol => Enumerable,Symbol}] substitutions
# Patterns and their substitutions.
# Patterns and their substitutions. Symbols are resolved to
# [Ronin::Support::Text::Patterns](https://ronin-rb.dev/docs/ronin-support/Ronin/Support/Text/Patterns.html).
noraj marked this conversation as resolved.
Show resolved Hide resolved
#
# @yield [fuzz]
# The given block will be passed every fuzzed String.
Expand All @@ -161,7 +160,7 @@ def repeating(lengths,&block)
# p str
# end
#
# @example Replace a `Regexp::UNIX_PATH` with {Ronin::Fuzzing#format_strings}:
# @example Replace a UNIX path with every {Ronin::Fuzzing#format_strings}:
# "GET /downloads/".fuzz(unix_path: :format_string)
#
# @api public
Expand Down