feat: match pdf images for path completion (#2205)

This commit is contained in:
Myriad-Dreamin 2025-10-29 04:03:26 +08:00 committed by GitHub
parent f011022097
commit 6b6a1bdad2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,7 @@ impl PathKind {
static IMAGE_REGSET: RegSet = RegSet::new(|| { static IMAGE_REGSET: RegSet = RegSet::new(|| {
make_regex(&[ make_regex(&[
"ico", "bmp", "png", "webp", "jpg", "jpeg", "jfif", "tiff", "gif", "svg", "svgz", "ico", "bmp", "png", "webp", "jpg", "jpeg", "jfif", "tiff", "gif", "svg", "svgz",
"pdf",
]) ])
}); });
static JSON_REGSET: RegSet = RegSet::new(|| make_regex(&["json", "jsonc", "json5"])); static JSON_REGSET: RegSet = RegSet::new(|| make_regex(&["json", "jsonc", "json5"]));