chore(LINT-0001) fix lint errors
This commit is contained in:
@@ -46,8 +46,8 @@ export function preprocessQuery(raw: string): string {
|
||||
.replace(/[()[\]{}]/g, ' ') // Remove grouping characters
|
||||
.replace(/[;:,!?]/g, ' ') // Remove punctuation that breaks FTS
|
||||
.replace(/[<>|]/g, ' ') // Remove comparison/pipe chars
|
||||
.replace(/[\-+*/%]/g, ' ') // Remove operators (but keep underscores)
|
||||
.replace(/[@#$&^\\~\`]/g, ' '); // Remove special chars
|
||||
.replace(/[-+*/%]/g, ' ') // Remove operators (but keep underscores)
|
||||
.replace(/[@#$&^~`\\]/g, ' '); // Remove special chars
|
||||
|
||||
// Split on remaining punctuation (like dots and slashes) but preserve alphanumeric/underscore.
|
||||
const parts = sanitized.split(/[./\s]+/).filter(Boolean);
|
||||
|
||||
Reference in New Issue
Block a user