mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
a3456b7e1c
* 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
|
|
};
|