mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
11 lines
280 B
JavaScript
11 lines
280 B
JavaScript
|
|
// @flow
|
||
|
|
import * as generalValidator from "../../components/validation";
|
||
|
|
|
||
|
|
export const isNameValid = (name: string) => {
|
||
|
|
return generalValidator.isNameValid(name);
|
||
|
|
};
|
||
|
|
|
||
|
|
export function isContactValid(mail: string) {
|
||
|
|
return "" === mail || generalValidator.isMailValid(mail);
|
||
|
|
}
|