Fix viewing articles if the URL has a trailing slash

This commit is contained in:
blankie 2022-10-30 22:12:48 +07:00 committed by Edward Loveall
parent d7ea1174ff
commit e1c70b9db0
No known key found for this signature in database

View file

@ -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)