mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-04-27 14:10:31 +00:00
Convert Windows line endings to UNIX format, fixes display issues with micron files created on Windows
This commit is contained in:
parent
93cc790ebd
commit
5f3b2eb020
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import re
|
||||
import unicodedata
|
||||
import RNS
|
||||
|
||||
def strip_modifiers(text):
|
||||
def process_characters(text):
|
||||
|
|
@ -26,5 +25,6 @@ def strip_modifiers(text):
|
|||
stripped = re.sub(r'[\U000E0100-\U000E01EF]', '', stripped, flags=re.UNICODE)
|
||||
stripped = re.sub(r'[\U0001F3FB-\U0001F3FF]', '', stripped, flags=re.UNICODE)
|
||||
stripped = re.sub(r'[\u200D\u200C]', '', stripped)
|
||||
stripped = re.sub(r'\r\n?', '\n', stripped)
|
||||
|
||||
return stripped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue