Skip to content

Commit

Permalink
fix(dfts-helper): strip whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafnik committed Dec 29, 2023
1 parent 33821a3 commit 3c944fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/dfts-helper/src/lib/helper/string/strip-whitespace.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { UndefinedOrNullOr } from '../../types';

export const s_stripWhitespace = (text: UndefinedOrNullOr<string>): string => text?.trim().replace(/^\s+/, '').replace(/\s+$/, '') ?? '';
export const s_stripWhitespace = (text: UndefinedOrNullOr<string>): string => text?.trim().replace(/\s/g, '') ?? '';

0 comments on commit 3c944fa

Please sign in to comment.