chore: Remove sonarjs ESLint suppressions and reformat code

This commit is contained in:
zhsama
2026-01-19 22:30:43 +08:00
parent f44305af0d
commit 6e9a5139b4
19 changed files with 53 additions and 64 deletions

View File

@ -18,5 +18,4 @@ export function getSelectedNode(
return $isAtNodeEnd(anchor) ? anchorNode : focusNode
}
// eslint-disable-next-line sonarjs/empty-string-repetition
export const urlRegExp = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*)?)/