mirror of
https://github.com/captn3m0/youtube-cue.git
synced 2024-09-10 13:46:29 +00:00
run local prettier instead of global one
This commit is contained in:
parent
a94395ea9d
commit
4d1bea0d0f
@ -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: {
|
||||
@ -165,7 +165,7 @@ export function parse(
|
||||
artist: "Unknown",
|
||||
forceTimestamps: false,
|
||||
forceDurations: false,
|
||||
}
|
||||
},
|
||||
) {
|
||||
_options = options;
|
||||
let durations = false;
|
||||
|
@ -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",
|
||||
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user