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:
parent
eaff14945a
commit
494a222c60
2
_wiki.js
2
_wiki.js
@ -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, '**');
|
||||
|
Loading…
Reference in New Issue
Block a user