JS -- add function eMailValidate used to validate an email address

This commit is contained in:
Calixte Denizet 2020-12-10 15:38:31 +01:00
parent b194c820bf
commit f94269c0d1
3 changed files with 29 additions and 1 deletions

View file

@ -92,7 +92,7 @@ function initSandbox({ data, extra, out }) {
out.zoomtype = ZoomType;
for (const name of Object.getOwnPropertyNames(AForm.prototype)) {
if (name.startsWith("AF")) {
if (name !== "constructor" && !name.startsWith("_")) {
out[name] = aform[name].bind(aform);
}
}