Haoming 2025-01-16 19:56:13 +08:00
parent b64f61ba6c
commit 2c28e25481
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ class LeFormatter {
while (/\(\s*\)|\[\s*\]/.test(input))
input = input.replace(/\(\s*\)|\[\s*\]/g, '');
input = input.replace(/\\\(([^\\\)]+?):([^\\\)]+?)\\\)/g, '\\($1: $2\\)');
return input.split(',').map(word => word.trim()).filter(word => word).join(', ');
}