|
|
@ -26,7 +26,7 @@ export function findImage(value: string, variation?: string) {
|
|
|
|
|
|
|
|
|
|
|
|
export function replaceColons(str: string) {
|
|
|
|
export function replaceColons(str: string) {
|
|
|
|
return str.replace(instance.rx_colons, m => {
|
|
|
|
return str.replace(instance.rx_colons, m => {
|
|
|
|
const name = m.substr(1, m.length - 2);
|
|
|
|
const name = m.substr(1, m.length - 2).toLowerCase();
|
|
|
|
const code = instance.map.colons[name];
|
|
|
|
const code = instance.map.colons[name];
|
|
|
|
if (code) {
|
|
|
|
if (code) {
|
|
|
|
return instance.data[code][0][0];
|
|
|
|
return instance.data[code][0][0];
|
|
|
|