Skip to content

Commit

Permalink
func
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Mar 26, 2024
1 parent 08cc5d4 commit a0cc988
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions views/profile.pug
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,15 @@ block content
button#update_preferences_button.btn.btn-primary Update Preferences

block extra_scripts

script.

(
function isValidEmail(email) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
}
function isValidEmail(email) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
}

function () {
script.
( function () {
$('#update_preferences_button').click((event) => {
event.preventDefault();
console.log('Update preferences called');
Expand Down

0 comments on commit a0cc988

Please sign in to comment.