import {
  validateFormat,
  validateLength
} from 'ember-changeset-validations/validators';

export default {
  currentPassword:  validateLength({ min: 8 }),
  newPassword:      [ 
    validateLength({ min: 8, message: 'New password must be at least 8 characters.'}),
    validateFormat({ regex: /\d/, message: 'New password must have at least 1 number.' }),
    validateFormat({ regex: /[\\S]+/, message: 'New password must not have any blank spaces.' })
  ]
};

@@ -384,17 +384,16 @@
 gex: /%5B%5C
-%5C
 S%5D+/, me

use correct regex for no blank space