Skip to content

Commit

Permalink
fix(schema): remove lowercase css class to display pattern as expected
Browse files Browse the repository at this point in the history
the pattern is set to lowercase so some pattern expression like [A-Z]{3} are displayed as [a-z]{3} that is not correct

Close #549
  • Loading branch information
M3lkior committed Feb 16, 2022
1 parent 3ece659 commit 8f6a90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/components/Schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const Schema: React.FunctionComponent<Props> = ({

{/* related to string */}
{schema.pattern() !== undefined && (
<span className="bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs">
<span className="bg-yellow-600 font-bold no-underline text-white rounded mr-2 p-1 text-xs">
must match: {schema.pattern()}
</span>
)}
Expand Down

0 comments on commit 8f6a90f

Please sign in to comment.