misc.anonradio: escape *'s

This commit is contained in:
Cynthia Foxwell 2022-08-19 22:56:00 -06:00
parent 5e97b7e9cf
commit d649adc5ab

View file

@ -357,9 +357,9 @@ anonradio.callback = async function (msg, line) {
); );
if (streamData && streamData.stream_start_iso8601) { if (streamData && streamData.stream_start_iso8601) {
const startTime = new Date(streamData.stream_start_iso8601).getTime(); const startTime = new Date(streamData.stream_start_iso8601).getTime();
openmicTime = `-*- OpenMIC DJ has been streaming for ${formatTime( openmicTime = `-\\*- OpenMIC DJ has been streaming for ${formatTime(
Date.now() - startTime Date.now() - startTime
)} -*-\n`; )} -\\*-\n`;
} }
} }