-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
const normSpaceText = text
.replaceAll('\x1F', '')
.replaceAll(/ +/gu, ' ')
.replaceAll(/a ?\.k ?\.a/gu, 'aka')
.replaceAll(/e ?\.g/gu, 'eg')
.replace(WORD_SEPARATOR_END, '');I tried to use Move left/right to reorder the calls, but it just does weird stuff. If I move the cursor to the first replace|All (| is cursor) and use Move right this happens:
const normSpaceText = replaceAll
.text
.replaceAll('\x1F', '')(/ +/gu, ' ')
.replaceAll(/a ?\.k ?\.a/gu, 'aka')
.replaceAll(/e ?\.g/gu, 'eg')
.replace(WORD_SEPARATOR_END, '');Gregoor
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request