Commit 5cc0bfd7 authored by Ben Wheeler's avatar Ben Wheeler

fix password error regex

parent a95d17f7
......@@ -108,7 +108,7 @@ const responseErrorMsgs = module.exports.responseErrorMsgs = {
'bad username': {errMsgId: 'registration.errorBadUsername'}
},
password: {
'Ensure this value has at least 6 characters (it has %d).': {
'Ensure this value has at least 6 characters \\(it has \\d\\).': {
errMsgId: 'registration.errorPasswordTooShort'
}
},
......@@ -127,3 +127,4 @@ module.exports.responseErrorMsg = (fieldName, serverRawErr) => {
if (matchingKey) return responseErrorMsgs[fieldName][matchingKey].errMsgId;
}
return null;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment