processTextAsCurrency(tableText) {
        const regex = /{([^}]+)}/g
        const input = tableText;

        let matches;
        while (matches = regex.exec(input)) {
            const currencyToAdd = this.generateCurrency(matches[1]);
            this.loot.addCurrency(currencyToAdd);
        }
        return tableText.replace(regex, '');
    }
/** Currency is defined as a text entry in the table inside { } , the format inside brackets it's the same as the global currency set
     * in the whole rolltable. e.g. formula[gp],formula[sp] and so on
     */
Currency is defined as a text entry in the table inside { } , the format inside brackets it's the same as the global currency set
in the whole rolltable.
Currency is defined as a text entry in the table inside { } the format inside brackets it ' s the same as the global currency set in the whole rolltable .
processTextAsCurrency(tableText) {
        const regex = /{([^}]+)}/g
        const input = tableText;
        let matches;
        while (matches = regex.exec(input)) {
            const currencyToAdd = this.generateCurrency(matches[1]);
            this.loot.addCurrency(currencyToAdd);
        }
        return tableText.replace(regex, '');
    }
processTextAsCurrency ( tableText ) { const regex = / {([^}]+)} / g const input = tableText ; let matches ; while ( matches = regex . exec ( input ) ) { const currencyToAdd = this . generateCurrency ( matches [ 1 ] ) ; this . loot . addCurrency ( currencyToAdd ) ; } return tableText . replace ( regex , '' ) ; }
Currency is defined as a text entry in the table inside { } , the format inside brackets it's the same as the global currency set
 in the whole rolltable.
Currency is defined as a text entry in the table inside { } the format inside brackets it ' s the same as the global currency set in the whole rolltable .