mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
update tests for org add/edit refactor
This commit is contained in:
@@ -11,7 +11,8 @@ export function required (message) {
|
||||
|
||||
export function maxLength (max) {
|
||||
return value => {
|
||||
if (value.trim() > max) {
|
||||
if (value.trim().length
|
||||
> max) {
|
||||
return i18nMark(`This field must not exceed ${max} characters`);
|
||||
}
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user