push (#414)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export const cleanSourceText = (text: string) => {
|
||||
return text
|
||||
.trim()
|
||||
.replace(/(\n){4,}/g, '\n\n\n')
|
||||
.replace(/\n\n/g, ' ')
|
||||
.replace(/ {3,}/g, ' ')
|
||||
.replace(/\t/g, '')
|
||||
.replace(/\n+(\s*\n)*/g, '\n');
|
||||
};
|
||||
Reference in New Issue
Block a user