We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b27384 commit 5e69770Copy full SHA for 5e69770
1 file changed
README.md
@@ -1370,7 +1370,7 @@ console.log(fn('Good job! 🎉')); // logs '✅'
1370
```ts
1371
const fn = (input: string) =>
1372
match(input)
1373
- .with(P.string.regex(/^[a-z]$/), () => 'single word')
+ .with(P.string.regex(/^[a-z]+$/), () => 'single word')
1374
.otherwise(() => 'other strings');
1375
1376
console.log(fn('gabriel')); // logs 'single word'
0 commit comments