diff options
-rw-r--r-- | slicer/slicer/metadata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slicer/slicer/metadata.h b/slicer/slicer/metadata.h index 73e351c..6b209ae 100644 --- a/slicer/slicer/metadata.h +++ b/slicer/slicer/metadata.h @@ -97,7 +97,7 @@ namespace Slicer { static constexpr inline auto in_scope(std::string_view md, std::string_view scope) { - return ((md.length() == scope.length() || (md.length() >= scope.length() && md[scope.length()] == ':')) + return ((md.length() == scope.length() || (md.length() > scope.length() && md[scope.length()] == ':')) && md.compare(0, scope.length(), scope) == 0); } |