Content deleted Content added
DreamRimmer (talk | contribs) fixes |
DreamRimmer (talk | contribs) - |
||
Line 835:
function parseRfCs(wikitext, topicName) {
const rfcs = [];
const rfcEntryPattern = /'''\[\[([^\]|]+)(?:\|([^\]]+))?\]\]'''[\s\S]*?\{\{rfcquote\|text=((?:[^{}]|\
const now = new Date();
Line 849:
let pageName, anchor, displayTitle;
const link = match[1];
displayTitle = match
if (link.includes('#')) {
Line 862:
let daysDiff = null;
const timestampMatch = rfcText.match(/(\d{2}):(\d{2}), (\d{1,2}) (\w+) (\d{4}) \(UTC\)
if (timestampMatch) {
const
const monthNum =
if (monthNum !== -1)
const
if (
▲ parseInt(year, 10),
▲ monthNum,
▲ parseInt(day, 10),
▲ parseInt(hour, 10),
▲ parseInt(minute, 10),
▲ 0, 0
▲ ));
▲ const timeDiff = currentUtc.getTime() - tsDate.getTime();
▲ daysDiff = Math.floor(timeDiff / (1000 * 60 * 60 * 24));
▲ }
}
}
|