Explorar el Código

[typo][fix] remove double quotes from regx

version-14
Saurabh hace 8 años
padre
commit
e795c08367
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      frappe/website/js/website.js

+ 1
- 1
frappe/website/js/website.js Ver fichero

@@ -334,7 +334,7 @@ $.extend(frappe, {
// Utility functions

function valid_email(id) {
return /"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"/.test(id.toLowerCase());
return /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/.test(id.toLowerCase());
}

var validate_email = valid_email;


Cargando…
Cancelar
Guardar