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) {
|
export default function LbcMessage(props: Props) {
|
||||||
let amount;
|
let amount;
|
||||||
const tokenizedMessage = props.children.replace(
|
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) => {
|
(originalString, lbcAmount, thirdArg) => {
|
||||||
amount = lbcAmount;
|
amount = lbcAmount;
|
||||||
return `%lbc%`;
|
return `%lbc%`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue