Skip to content

Quote user input before using it in a regex #1

@DavidGamba

Description

@DavidGamba

Using a option like:

{ 'test' => :test,
  'help|?' => lambda { launch_help(); exit 1 }
}

Causes an error saying "[ERROR] option '?' matches multiple names ..." matching every option.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions