tests for voice
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -1m32s
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -1m32s
This commit is contained in:
@@ -165,9 +165,9 @@ function voiceLines(voice: Voice, num: number): string[] {
|
||||
tokens.push(LINES.POINT);
|
||||
tokens.push(...digitByDigit(parts[1]));
|
||||
}
|
||||
return tokens.map(l => path.join(voice.directory, `${l}.${voice.extension}`));
|
||||
return tokens.map(l => path.join(voice.directory, `${l}${voice.extension.length > 0 && voice.extension.charAt(0) !== '.' ? '.' : ''}${voice.extension}`));
|
||||
}
|
||||
|
||||
export default voiceLines;
|
||||
export { voiceLines };
|
||||
export { voiceLines, LINES };
|
||||
export type { Voice, Voices };
|
||||
|
Reference in New Issue
Block a user