fix: do not add extra slashes to pattern

fixes #983
This commit is contained in:
Roman Hotsiy 2019-07-30 10:54:38 +03:00
parent 2f75aa3aed
commit 70d1ee9edd
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 2 additions and 10 deletions

View File

@ -883,12 +883,12 @@ components:
as well as digits as well as digits
format: password format: password
minLength: 8 minLength: 8
pattern: '(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])' pattern: '/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/'
example: drowssaP123 example: drowssaP123
phone: phone:
description: User phone number in international format description: User phone number in international format
type: string type: string
pattern: '^\+(?:[0-9]-?){6,14}[0-9]$' pattern: '/^\+(?:[0-9]-?){6,14}[0-9]$/'
example: +1-202-555-0192 example: +1-202-555-0192
nullable: true nullable: true
userStatus: userStatus:

View File

@ -61,14 +61,6 @@ export const PatternLabel = styled(FieldLabel)`
&::after { &::after {
font-weight: bold; font-weight: bold;
} }
&::before {
content: ' /';
}
&::after {
content: '/ ';
}
`; `;
export const ExampleValue = styled(FieldLabel)` export const ExampleValue = styled(FieldLabel)`