UNPKG

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) 494 B
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.MSGVALIDATORFTPS') }; if (!/^ftps:\/\//.test(value)) { return err; } };