Fixed minor issues

This commit is contained in:
Ascari 2020-07-12 00:00:21 -05:00
parent bff57b7c0f
commit d53f61ee2c

View file

@ -19,7 +19,7 @@ const levelMapping = [
const styles = Object.create(null); const styles = Object.create(null);
function parseTaggedString(string) { function parseTaggedString(string) {
const tagPattern = /\<([\w, '().]+)\>([\s\S]+)\<\/\w*\>/g; const tagPattern = /<([\w, '().]+)>([\s\S]+)<\/\w*>/g;
const callPattern = /\((.*)\)/; const callPattern = /\((.*)\)/;
return string.replace(tagPattern, (_, color, text) => { return string.replace(tagPattern, (_, color, text) => {
let carbonate = chalk; let carbonate = chalk;