Skip to content
Prev Previous commit
Next Next commit
simplify some storybook regex
  • Loading branch information
jorgefilipecosta committed Nov 21, 2025
commit 7ff8fe8721b44f98c5efb27676857ff8051eeb46
4 changes: 2 additions & 2 deletions packages/dataviews/src/stories/dataform.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ const ValidationComponent = ( {
description: 'Email must be from @company.com domain',
isValid: {
required,
pattern: /^[a-zA-Z0-9._%+-]+@company\.com$/,
pattern: /^[a-zA-Z0-9]+@company\.com$/,
},
},
{
Expand Down Expand Up @@ -1077,7 +1077,7 @@ const ValidationComponent = ( {
description: 'Must be a GitHub repository URL',
isValid: {
required,
pattern: /^https:\/\/github\.com\/[\w-]+\/[\w-]+\/?$/,
pattern: /^https:\/\/github\.com\/.*/,
},
},
{
Expand Down