fix: app crash on qutebrowser

add a prop in numberformat options that was resulting in out of range error.
also swapped
'replaceAll' with 'replace'

https://github.com/zyachel/libremdb/issues/24
This commit is contained in:
zyachel
2022-12-10 20:13:34 +05:30
parent c2df20e6ad
commit 78b14ec079
2 changed files with 5 additions and 7 deletions

View File

@ -124,10 +124,7 @@ const Info = ({ info, className, router }: Props) => {
{keywords.list.map(word => (
<li className={styles.keywords__item} key={word}>
<Link
href={`/search/keyword/?keywords=${word.replaceAll(
' ',
'-'
)}`}
href={`/search/keyword/?keywords=${word.replace(/\s/g,'-')}`}
>
<a className='link'>{word}</a>
</Link>