From fd76422b760e6c045581bcb11842ee42221d06e0 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Sun, 30 Apr 2023 11:31:34 +0400 Subject: [PATCH] now not matching end node unless it matches exactly --- hyde.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hyde.rb b/hyde.rb index e4f92bc..aa088a6 100644 --- a/hyde.rb +++ b/hyde.rb @@ -172,6 +172,13 @@ module Hyde return return_later end end + def _match?(path, request) + # End node - nothing must be after it + if super(path,request) then + match_path = _normalize_input(request.path).match(@path) + return (match_path.post_match == "") + end + end end class Serve < Hyde::Probe