mielk-fn 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const clear = (value) => {
4
- const regex = /(^\s|(?<=\s)\s|\s$)/gi;
4
+ const regex = /(^\s+|(?<=\s)\s|\s+$)/gi;
5
5
  return value.replace(regex, '');
6
6
  };
7
7
  exports.default = { clear };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mielk-fn",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Set of helpful functions",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -1,5 +1,5 @@
1
1
  const clear = (value: string): string => {
2
- const regex = /(^\s|(?<=\s)\s|\s$)/gi;
2
+ const regex = /(^\s+|(?<=\s)\s|\s+$)/gi;
3
3
  return value.replace(regex, '');
4
4
  };
5
5