Skip to content

Commit

Permalink
title regx removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed Oct 11, 2023
1 parent fd365a4 commit 4468aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/MetaDetails/VideosList/Video/Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Video = ({ className, id, title, thumbnail, episode, released, upcoming, w
<div className={styles['info-container']}>
<div className={styles['title-container']}>
{episode !== null && !isNaN(episode) ? `${episode}. ` : null}
{typeof title === 'string' && title.length > 0 ? title.toLowerCase().replace(/\b\w/g, (char) => char.toUpperCase()) : id}
{typeof title === 'string' && title.length > 0 ? title : id}
</div>
<div className={styles['flex-row-container']}>
{
Expand Down

0 comments on commit 4468aa2

Please sign in to comment.