return result with input, if prescribed
This commit is contained in:
parent
22e0c904e0
commit
66d46eab32
|
@ -41,11 +41,12 @@ The follow options may also be specified:
|
|||
// 4. check the most recent character, if desired
|
||||
|
||||
// 5. normalize the input if desired (i.e. John.Doe@GMail.com -> john.doe@gmail.com)
|
||||
// (or return something else entirely)
|
||||
|
||||
// You can error out
|
||||
// return form.PromiseA.reject(new Error("[X] This isn't an email address: no '@'"));
|
||||
|
||||
return input.toLowerCase();
|
||||
return input.toLowerCase(); // will be returned as `result` alongside `input`
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue