mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: backward compatible of reject_phishing file
This commit is contained in:
@@ -68,14 +68,14 @@ export async function compareAndWriteFile(linesA: string[], filePath: string) {
|
||||
|
||||
export const withBannerArray = (title: string, description: string[], date: Date, content: string[]) => {
|
||||
return [
|
||||
'########################################',
|
||||
'#########################################',
|
||||
`# ${title}`,
|
||||
`# Last Updated: ${date.toISOString()}`,
|
||||
`# Size: ${content.length}`,
|
||||
...description.map(line => (line ? `# ${line}` : '#')),
|
||||
'########################################',
|
||||
'#########################################',
|
||||
...content,
|
||||
'################# END ###################'
|
||||
'################## EOF ##################'
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user