diff --git a/src/lib/manipulations/components/Trim.svelte b/src/lib/manipulations/components/Trim.svelte index cc315c0..a125d1d 100644 --- a/src/lib/manipulations/components/Trim.svelte +++ b/src/lib/manipulations/components/Trim.svelte @@ -4,7 +4,7 @@ export interface TrimManipulation extends ManipulationBase { type: 'trim'; - trimType: 'leading' | 'trailing' | 'all'; + trimType: string; } const options = [ diff --git a/src/lib/manipulations/index.ts b/src/lib/manipulations/index.ts index acb96e4..6afc546 100644 --- a/src/lib/manipulations/index.ts +++ b/src/lib/manipulations/index.ts @@ -146,6 +146,9 @@ function doManipulationInner(input: string, manipulation: TManipulation): string case 'all': { return input.trim(); } + default: { + return input; + } } } }