From b37e9a272e6116e20575abe318804befeaa039cf Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Sat, 15 Jun 2024 18:52:11 +0100 Subject: [PATCH] Update controls.mdx --- docs/essentials/controls.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/essentials/controls.mdx b/docs/essentials/controls.mdx index 67a0acecf71d..1886ba98d4cf 100644 --- a/docs/essentials/controls.mdx +++ b/docs/essentials/controls.mdx @@ -183,7 +183,7 @@ Controls can automatically be inferred from arg's name with [regex](https://deve | Control | Default regex | Description | | --------- | ---------------------------------------- | --------------------------------------------------------- | -| **color** | /(background|color)$/i | Will display a color picker UI for the args that match it | +| **color** | {`/(backgroundq\|color)$/i`} | Will display a color picker UI for the args that match it | | **date** | `/Date$/` | Will display a date picker UI for the args that match it | If you haven't used the CLI to set the configuration, or if you want to define your patterns, use the `matchers` property in the `controls` parameter: