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
|
|
@ -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>© 2018 Microsoft</small>
|
||||
<small>© {{year}} Microsoft</small>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
|
|
|
|||
|
|
@ -4517,7 +4517,7 @@ return {
|
|||
<footer class="container">
|
||||
<hr>
|
||||
<p class="text-center">
|
||||
<small>© 2018 Microsoft</small>
|
||||
<small>© {{year}} Microsoft</small>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
<footer class="container">
|
||||
<hr>
|
||||
<p class="text-center">
|
||||
<small>© 2018 Microsoft</small>
|
||||
<small>© {{year}} Microsoft</small>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue