Commit 99ef873
committed
Fix a redundant regexp escape in the tool name validation
## Motivation and Context
This PR suppresses the following offense of RuboCop.
```console
$ bundle exec rubocop
Inspecting 163 files
(snip)
Offenses:
lib/mcp/tool.rb:152:48: C: [Correctable] Style/RedundantRegexpEscape: Redundant escape inside regexp literal
unless tool_name.match?(/\A[A-Za-z\d_\-\.]+\z/)
^^
163 files inspected, 1 offense detected, 1 offense autocorrectable
```
## How Has This Been Tested?
`bundle exec rake` passes: RuboCop reports no offenses.
## Breaking Changes
None.1 parent 7d7a566 commit 99ef873
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments