mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 05:50:11 +01:00
Merge pull request #1303 from swarnava/copyright-year
Make copyright year dynamic
This commit is contained in:
commit
d23fd1e0a0
5 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue