fix(agents): recognize SCSS filename literals

This commit is contained in:
4gray committed 2026-09-20 19:19:05 +02:00
1 parent 989ba24ecf
commit 46d7f58a6c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ function isLiteralRepositoryPath(token) {
// This applies to user-defined symbols as well as JavaScript globals.
if (
/^[\p{L}_][\p{L}\p{N}_]*(?:\.[\p{L}_][\p{L}\p{N}_]*)+$/u.test(path) &&
!/\.(?:md|mdx|json|jsonc|ya?ml|[cm]?[jt]sx?|html?|[sc]ss|sass|less|toml|xml|txt|sh|py|sql|svg|png|jpe?g|webp|gif|m3u8?|conf|ini|lock)$/iu.test(
!/\.(?:md|mdx|json|jsonc|ya?ml|[cm]?[jt]sx?|html?|css|scss|sass|less|toml|xml|txt|sh|py|sql|svg|png|jpe?g|webp|gif|m3u8?|conf|ini|lock)$/iu.test(
path
)
)
@@ -169,6 +169,7 @@ for (const path of [
'lib/definitely-missing.ts',
'services/definitely-missing.ts',
'electron-builder.json',
'missing.scss',
'custom.config-format',
'.custom-config',
'arbitrary/directory',