From e1c70b9db0290bc2f5598426b28595186a0c7dcc Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 30 Oct 2022 22:12:48 +0700 Subject: [PATCH] Fix viewing articles if the URL has a trailing slash --- src/classes/article_id_parser.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/article_id_parser.cr b/src/classes/article_id_parser.cr index 8693ea6..1db19de 100644 --- a/src/classes/article_id_parser.cr +++ b/src/classes/article_id_parser.cr @@ -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)