2
0
mirror of https://github.com/tycrek/degoogle synced 2024-11-04 12:00:20 +00:00

Fix wiki regex for Updated timestamp

This commit is contained in:
tycrek 2020-06-05 08:34:26 -06:00
parent eaff14945a
commit 494a222c60

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, '**');