fix LbcMessage for ranges with decimals

This commit is contained in:
Sean Yesmunt 2020-11-20 11:56:58 -05:00
parent fe2656cfa9
commit d42586dc9e

View file

@ -10,7 +10,7 @@ type Props = {
export default function LbcMessage(props: Props) {
let amount;
const tokenizedMessage = props.children.replace(
/(\d?\.?-?\d?\.?-?\d+?)\s(LBC|LBRY Credits?)/g,
/(\d?\.?\d?-?\d?\.?-?\d+?)\s(LBC|LBRY Credits?)/g,
(originalString, lbcAmount, thirdArg) => {
amount = lbcAmount;
return `%lbc%`;