Fix wiki regex for Updated timestamp

This commit is contained in:
tycrek 2020-06-05 08:34:26 -06:00
parent eaff14945a
commit 494a222c60
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ function putWiki(endpoint, lastId, token) {
*/
function fixContent(content) {
// Fix updated timestamp
content = content.replace(/\!\[Updated\](.*?)\r\n/g, `#### Updated: ${moment().format('MMMM Do YYYY')}`);
content = content.replace(/\!\[Updated\](.*?)square\)/g, `#### Updated: ${moment().format('MMMM Do YYYY')}`);
// Fix published timestamps
content = content.replace(/\!\[Published\]\(https\:\/\/img\.shields\.io\/badge\//g, '**');