mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 12:57:44 +00:00
chore: initial work on making sure that epub is fully valid
This commit is contained in:
@@ -20,3 +20,8 @@ export const getFullRelativePath = (...paths: string[]) => {
|
||||
? slash(join(...paths))
|
||||
: paths[paths.length - 1];
|
||||
};
|
||||
|
||||
export const trimTrailingSlash = (path: string) => {
|
||||
if (path.endsWith("/")) return path.slice(0, path.length - 1);
|
||||
return path;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user