• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision29058 (tree)
Time2021-01-14 02:24:52
Authorstefankueng

Log Message

Change Summary

Incremental Difference

--- trunk/contrib/hook-scripts/client-side/checkyear.js (revision 29057)
+++ trunk/contrib/hook-scripts/client-side/checkyear.js (revision 29058)
@@ -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