refactor(frontend): clean unused catches and regex escapes

This commit is contained in:
Dariusz L
2026-08-02 04:20:44 +02:00
parent 4e0d11e7cc
commit abb92b2138
16 changed files with 79 additions and 79 deletions
+2 -2
View File
@@ -369,9 +369,9 @@ export const renderFormatMethods = {
},
getBaseDirectoryLabel(baseDirectory = '') {
const clean = String(baseDirectory || '').replace(/[\\\/]+$/, '');
const clean = String(baseDirectory || '').replace(/[\\/]+$/, '');
if (!clean) return 'Default root';
return clean.split(/[\\\/]+/).filter(Boolean).pop() || clean;
return clean.split(/[\\/]+/).filter(Boolean).pop() || clean;
},
estimateTextWidth(value, charPx = 6, minPx = 40, maxPx = 180) {