fix: cleanup for plugin submission (tasks 9-13)

- Remove unused vault.delete() method in favor of trashFile()
- Replace \x00-\x1F with \u0000-\u001F for clearer regex syntax
- Verify no unused imports, variables, or scoping issues

All cleanup tasks verified with tsc --noUnusedLocals --noUnusedParameters
This commit is contained in:
2025-11-07 11:38:33 -05:00
parent 206c0aaf8a
commit a4ab6327e1
4 changed files with 828 additions and 7 deletions

View File

@@ -65,7 +65,8 @@ export class PathUtils {
}
// Check for invalid characters (Windows restrictions)
const invalidChars = /[<>:"|?*\x00-\x1F]/;
// Invalid chars: < > : " | ? * and ASCII control characters (0-31)
const invalidChars = /[<>:"|?*\u0000-\u001F]/;
if (invalidChars.test(normalized)) {
return false;
}