We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b77446c commit bdde52aCopy full SHA for bdde52a
README.md
@@ -3341,19 +3341,16 @@ resource cleanup when possible.
3341
```
3342
3343
* <a name="percent-r"></a>
3344
- Use `%r` only for regular expressions matching *more than* one '/'
+ Use `%r` only for regular expressions matching *at least* one '/'
3345
character.
3346
<sup>[[link](#percent-r)]</sup>
3347
3348
```Ruby
3349
# bad
3350
%r(\s+)
3351
3352
- # still bad
3353
- %r(^/(.*)$)
3354
- # should be /^\/(.*)$/
3355
-
3356
# good
+ %r(^/(.*)$)
3357
%r(^/blog/2011/(.*)$)
3358
3359
0 commit comments