Skip to content

Commit

Permalink
run local prettier instead of global one
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Dec 14, 2023
1 parent a94395e commit 4d1bea0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ var firstPass = function (line) {
let track = matches.groups["trackl"]
? +matches.groups["trackl"]
: matches.groups["trackr"]
? +matches.groups["trackr"]
: null;
? +matches.groups["trackr"]
: null;
return {
track: track,
start: {
Expand Down Expand Up @@ -165,7 +165,7 @@ export function parse(
artist: "Unknown",
forceTimestamps: false,
forceDurations: false,
}
},
) {
_options = options;
let durations = false;
Expand Down
4 changes: 2 additions & 2 deletions test/parser_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe("Parser", function () {
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",
Expand All @@ -174,7 +174,7 @@ describe("Parser", function () {
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,
Expand Down

0 comments on commit 4d1bea0

Please sign in to comment.