🏡 index : github.com/captn3m0/youtube-cue.git

author Nemo <commits@captnemo.in> 2023-12-14 15:40:23.0 +05:30:00
committer Nemo <commits@captnemo.in> 2023-12-14 15:40:23.0 +05:30:00
commit
4d1bea0d0ff36fcdcb146ed62dc07c4207a61116 [patch]
tree
f774ee70f38e82d03ddc05301dea09318f1177a2
parent
a94395ea9d70f4f2423f9a1affe8fd303a0621fe
download
master.tar.gz

run local prettier instead of global one



Diff

 src/parser.js       | 6 ++++--
 test/parser_test.js | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/parser.js b/src/parser.js
index 188e75d..7d31ba7 100644
--- a/src/parser.js
+++ a/src/parser.js
@@ -41,8 +41,8 @@
  let track = matches.groups["trackl"]
    ? +matches.groups["trackl"]
    : matches.groups["trackr"]
    ? +matches.groups["trackr"]
    : null;
      ? +matches.groups["trackr"]
      : null;
  return {
    track: track,
    start: {
@@ -165,7 +165,7 @@
    artist: "Unknown",
    forceTimestamps: false,
    forceDurations: false,
  }
  },
) {
  _options = options;
  let durations = false;
diff --git a/test/parser_test.js b/test/parser_test.js
index 3085c67..8c0c6cb 100644
--- a/test/parser_test.js
+++ a/test/parser_test.js
@@ -152,7 +152,7 @@
    let result = parse(
      `1. Artist - Title 5:00
2. Another Artist - Another Title 4:20`,
      { forceTimestamps: true }
      { forceTimestamps: true },
    );
    assert.deepEqual(result[0].end, {
      ts: "00:4:20",
@@ -174,7 +174,7 @@
    let result = parse(
      `1. Artist - Title 1:00
2. Another Artist - Another Title 1:15`,
      { forceDurations: true }
      { forceDurations: true },
    );
    assert.deepEqual(result[0], {
      track: 1,