110
}
111
if (fontStyle !== undefined) {
113
>
const expression = /italic|bold|underline|strikethrough/g;
114
>
let match;
115
>
while ((match = expression.exec(fontStyle))) {
116
>
switch (match[0]) {
117
>
case 'bold': bold = true; break;
118
>
case 'italic': italic = true; break;
119
>
case 'underline': underline = true; break;
120
>
case 'strikethrough': strikethrough = true; break;
121
>
}
122
>
}
123
>
}
124
return new TokenStyle(foregroundColor, bold, underline, strikethrough, italic);
125
}