Fix viewing articles if the URL has a trailing slash
This commit is contained in:
parent
d7ea1174ff
commit
e1c70b9db0
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
class ArticleIdParser
|
||||
include Monads
|
||||
|
||||
ID_REGEX = /[\/\-]([0-9a-f]+)$/i
|
||||
ID_REGEX = /[\/\-]([0-9a-f]+)\/?$/i
|
||||
|
||||
def self.parse(request : HTTP::Request)
|
||||
new.parse(request)
|
||||
|
|
Loading…
Reference in a new issue