Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser authored Jan 17, 2024
1 parent 49559f2 commit 393bfde
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/styles/components/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
&[hidden] {
pointer-events: none;
display: block !important;
pointer-events: none;
visibility: hidden;
opacity: 0;
transform: translate(-50%) scale(0);
Expand Down
2 changes: 1 addition & 1 deletion src/subtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function formatYoutubeSubtitles(subtitles) {
for (let i = 0; i < subtitles.events.length; i++) {
if (!subtitles.events[i].segs) continue;
const text = subtitles.events[i].segs
.map((e) => e.utf8.replace(/^ +| +$/g, ""))
.map((e) => e.utf8.replace(/(^ +)|( +$)/g, ""))
.join(" ");
let durationMs = subtitles.events[i].dDurationMs;
if (
Expand Down

0 comments on commit 393bfde

Please sign in to comment.