Scaffold: Update copyright year automatically

This commit is contained in:
Abe Jellinek 2024-03-18 12:20:22 -04:00
parent 6d02076a1c
commit cee1e3a596
2 changed files with 2 additions and 1 deletions

View file

@ -924,6 +924,7 @@ var Scaffold = new function () {
//newWeb, scrapeEM, scrapeRIS, scrapeBibTeX, scrapeMARC
//These names in the XUL file have to match the file names in template folder.
let value = Zotero.File.getContentsFromURL(`chrome://scaffold/content/templates/${template}.js`);
value = value.replace('$$YEAR$$', new Date().getFullYear());
let cursorOffset = value.indexOf('$$CURSOR$$');
value = value.replace('$$CURSOR$$', '');

View file

@ -1,7 +1,7 @@
/*
***** BEGIN LICENSE BLOCK *****
Copyright © 2024 YOUR_NAME <- TODO
Copyright © $$YEAR$$ YOUR_NAME <- TODO
This file is part of Zotero.