* Reload FileTree and File when changed externally * Added tests * Make file and project creation a bit more reliable
4 lines
119 B
TypeScript
4 lines
119 B
TypeScript
export const normalizeLineEndings = (str: string, normalized = '\n') => {
|
|
return str.replace(/\r?\n/g, normalized)
|
|
}
|