spelling: insensitively

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2022-08-09 23:10:47 -04:00
committed by benjamin wil
parent 83055d03f7
commit 5934697aa3
+1 -1
View File
@@ -252,7 +252,7 @@ def find_linked(link)
# If it has an explicit file extension ('Samwi.md'), just test against that.
test_path = ::File.extname(link).empty? ? /#{link}\..+/ : link
# Select pages from the wiki whose path =~ 'Foo/Bar/Samwi.*'
# Match case-insenstively to mimic 4.x behavior!
# Match case-insensitively to mimic 4.x behavior!
Object.class_variable_get(:"@@wiki_tree").select { |path|
path =~ /^\/(.*\/)?#{test_path}/i
}