Merge pull request #1303 from swarnava/copyright-year

Make copyright year dynamic
pull/1339/head
Alexandru Dima 6 years ago committed by GitHub
commit d23fd1e0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2018 Microsoft Corporation
Copyright (c) 2019 Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

@ -588,7 +588,7 @@ const buildWebsiteTask = taskSeries(cleanWebsiteTask, function() {
var contents = data.contents.toString();
contents = contents.replace(/\.\.\/release\/dev/g, 'node_modules/monaco-editor/min');
contents = contents.replace(/{{version}}/g, MONACO_EDITOR_VERSION);
// contents = contents.replace('© 2017 Microsoft', '© 2017 Microsoft [' + builtTime + ']');
contents = contents.replace(/{{year}}/g, new Date().getFullYear());
// Preload xhr contents
contents = replaceWithRelativeResource(data.path, contents, /<pre data-preload="([^"]+)".*/g, function(m0, fileContents) {

@ -154,7 +154,7 @@
<img src="https://opensource.microsoft.com/img/microsoft.png" alt="Microsoft" style="max-height:23px;margin-bottom:12px;">
</a>
<br/>
<small>&copy; 2018 Microsoft</small>
<small>&copy; {{year}} Microsoft</small>
</p>
</footer>

@ -4517,7 +4517,7 @@ return {
<footer class="container">
<hr>
<p class="text-center">
<small>&copy; 2018 Microsoft</small>
<small>&copy; {{year}} Microsoft</small>
</p>
</footer>

@ -67,7 +67,7 @@
<footer class="container">
<hr>
<p class="text-center">
<small>&copy; 2018 Microsoft</small>
<small>&copy; {{year}} Microsoft</small>
</p>
</footer>

Loading…
Cancel
Save