• R/O
  • SSH
  • HTTPS

commitmonitor: Commit


Commit MetaInfo

Revision1182 (tree)
Time2021-01-14 02:28:41
Authorstefankueng

Log Message

Use dynamic year in checkyear.js

Change Summary

Incremental Difference

--- trunk/tools/checkyear.js (revision 1181)
+++ trunk/tools/checkyear.js (revision 1182)
@@ -19,7 +19,8 @@
1919 WScript.Quit(1);
2020 }
2121
22-var re = /^\/\/ Copyright.+(2021)(.*)/;
22+var currentyear = new Date().getFullYear();
23+var re = new RegExp('^(\\\/\\\/|#) Copyright.+(' + currentyear + ')(.*)');
2324 var basere = /^\/\/ Copyright(.*)/;
2425 var filere = /(\.cpp$)|(\.h$)|(\.idl$)/;
2526
Show on old repository browser