mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
936acdb693
* Adds `bind`, `isFinite`, and `isNumber` utility functions from lodash. * Use new util funtions instead of lodash throughout the codebase. * Remove lodash from vendor builds.
16 lines
311 B
JavaScript
16 lines
311 B
JavaScript
function init() {
|
|
// Provide a few custom validators
|
|
//
|
|
validator.extend('empty', function (str) {
|
|
return Ember.isBlank(str);
|
|
});
|
|
|
|
validator.extend('notContains', function (str, badString) {
|
|
return str.indexOf(badString) === -1;
|
|
});
|
|
}
|
|
|
|
export default {
|
|
init: init
|
|
};
|