mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +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
|
||
|
};
|