@goweekdays/layer-common 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @goweekdays/layer-common
2
2
 
3
+ ## 1.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 54da80d: Fix useUtil function
8
+
3
9
  ## 1.0.7
4
10
 
5
11
  ### Patch Changes
@@ -3,6 +3,7 @@ export default function useUtils() {
3
3
 
4
4
  const emailRule = (v: string): true | string => {
5
5
  const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
6
+ if(!v) return true;
6
7
  return regex.test(v) || "Please enter a valid email address";
7
8
  };
8
9
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@goweekdays/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.0.7",
5
+ "version": "1.0.8",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"