consul/ui/packages/consul-ui/app/validations/policy.js

10 lines
233 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { validateFormat } from 'ember-changeset-validations/validators';
export default {
Name: validateFormat({ regex: /^[A-Za-z0-9\-_]{1,128}$/ }),
};