mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
typo
This commit is contained in:
parent
06ebbd97c0
commit
9c0371165e
2 changed files with 4 additions and 4 deletions
|
@ -162,11 +162,11 @@ can easily define your own matchers:
|
|||
|
||||
def initialize(except)
|
||||
@except = except
|
||||
@caputres = Match.new([])
|
||||
@captures = Match.new([])
|
||||
end
|
||||
|
||||
def match(str)
|
||||
@caputres unless @except === str
|
||||
@captures unless @except === str
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -162,11 +162,11 @@ Rack body对象或者HTTP状态码:
|
|||
|
||||
def initialize(except)
|
||||
@except = except
|
||||
@caputres = Match.new([])
|
||||
@captures = Match.new([])
|
||||
end
|
||||
|
||||
def match(str)
|
||||
@caputres unless @except === str
|
||||
@captures unless @except === str
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue