comindware.core.ui
Version:
Comindware Core UI provides the basic components like editors, lists, dropdowns, popups that we so desperately need while creating Marionette-based single-page applications.
18 lines (15 loc) • 487 B
text/typescript
import LocalizationService from '../../services/LocalizationService';
import _ from 'underscore';
export default () =>
function(value) {
if (value === null || value === undefined || value === false || value === '') {
return;
}
const err = {
type: 'uri',
message: LocalizationService.get('CORE.FORM.EDITORS.URIEDITOR.MSGVALIDATORMAILTO')
};
if (!/@/.test(value)) {
return err;
}
};