ingeni-validation 1.2.0 → 1.2.2
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/ingeni-validation.js +3 -1
- package/package.json +1 -1
package/ingeni-validation.js
CHANGED
|
@@ -162,9 +162,11 @@ async function isValidMobile(mobile) {
|
|
|
162
162
|
return false;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
return /^[
|
|
165
|
+
return /^[1-9]\d{9}$/.test(mobileStr);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
|
|
169
|
+
|
|
168
170
|
// Email Validation
|
|
169
171
|
async function isValidEmail(email) {
|
|
170
172
|
|