forked from devol/degooglizzazione
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) {
|
function fixContent(content) {
|
||||||
// Fix updated timestamp
|
// 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
|
// Fix published timestamps
|
||||||
content = content.replace(/\!\[Published\]\(https\:\/\/img\.shields\.io\/badge\//g, '**');
|
content = content.replace(/\!\[Published\]\(https\:\/\/img\.shields\.io\/badge\//g, '**');
|
||||||
|
|
Loading…
Reference in New Issue