spemailhandler
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -23,2 +23,5 @@ "use strict"; | ||
isEmail(email) { | ||
if (email.length > 254) { | ||
return false; | ||
} | ||
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | ||
@@ -25,0 +28,0 @@ return emailPattern.test(email); |
{ | ||
"name": "spemailhandler", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A script to handle the interaction between a Bootstrap-based contact form and the server, handling form submission and feedback.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -62,3 +62,3 @@ # SPEmailHandler - Contact Form Script | ||
Alert for Displaying Errors | ||
Success Modal | ||
```html | ||
@@ -65,0 +65,0 @@ <div class="modal fade" id="success" tabindex="-1" aria-labelledby="successLabel" aria-hidden="true"> |
@@ -33,2 +33,5 @@ import "bootstrap"; | ||
isEmail(email: string): boolean { | ||
if (email.length > 254) { | ||
return false; | ||
} | ||
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | ||
@@ -35,0 +38,0 @@ return emailPattern.test(email); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26010
343