Merge pull request #1303 from swarnava/copyright-year

Make copyright year dynamic
This commit is contained in:
Alexandru Dima 2019-03-01 22:49:29 +01:00 committed by GitHub
commit d23fd1e0a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -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) {