mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: solve render error
This commit is contained in:
parent
c149f96ca8
commit
f23a991267
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ export const regexMode: ModeShape = {
|
|||
const { name } = node
|
||||
return name.includes('/') ? (
|
||||
name.split('/').map((chunk, index, chunks) => (
|
||||
<span key={chunk} className={cx({ prefix: index + 1 !== chunks.length })}>
|
||||
<span key={index} className={cx({ prefix: index + 1 !== chunks.length })}>
|
||||
<Highlight match={regex} text={chunk} />
|
||||
{index + 1 !== chunks.length && '/'}
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue