Fixed minor issues
This commit is contained in:
parent
bff57b7c0f
commit
d53f61ee2c
1 changed files with 17 additions and 17 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue