mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 09:22:49 +03:00
16 lines
309 B
JavaScript
16 lines
309 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 !_.contains(str, badString);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export default {
|
||
|
init: init
|
||
|
};
|