Fix: compare and write file with empty line

This commit is contained in:
SukkaW
2025-04-21 21:09:55 +08:00
parent 028d50d928
commit 1321f6d9db
2 changed files with 17 additions and 1 deletions

View File

@@ -86,4 +86,10 @@ describe('fileEqual', () => {
['A', 'B', ''],
false
));
it('sgmodule', () => test(
['#!name=[Sukka] URL Redirect', '#!desc=Last Updated: 2025-04-21T13:01:42.570Z Size: 127', '', 'always-real-ip'],
['#!name=[Sukka] URL Redirect', '#!desc=Last Updated: 2025-04-20T13:01:42.570Z Size: 130', '', 'always-real-ip'],
true
));
});