pref: optimize the diff to make it more accurately reflect changes (#11)
* pref: optimize the diff to make it more accurately reflect changes * pref: optimize the diff page selection
This commit is contained in:
@@ -50,3 +50,7 @@ export function getParser(filePath: string): BuiltInParserName | undefined {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
export function normalizeContent(content?: string) {
|
||||
return content?.replace(/\r\n/g, '\n').trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user