summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/asciidoctor/path_resolver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/path_resolver.rb b/lib/asciidoctor/path_resolver.rb
index 42bd9e72..5d1098df 100644
--- a/lib/asciidoctor/path_resolver.rb
+++ b/lib/asciidoctor/path_resolver.rb
@@ -196,7 +196,7 @@ class PathResolver
#
# returns If path descends from base, return the offset, otherwise false.
def descends_from? path, base
- base == path ? 0 : ((path.start_with? base + '/') ? base.length + 1 : false)
+ base == path ? 0 : ((path.start_with? base + SLASH) ? base.length + 1 : false)
end
# Public: Normalize path by converting any backslashes to forward slashes