fix LbcMessage for ranges with decimals
This commit is contained in:
parent
fe2656cfa9
commit
d42586dc9e
1 changed files with 1 additions and 1 deletions
|
@ -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%`;
|
||||
|
|
Loading…
Reference in a new issue