From 486c894a9ed407c6985e6d67b595c3916cb9b3fb Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Sat, 21 May 2022 22:25:14 +0100 Subject: [PATCH] Fix a confusing Regex in the Compose webpage (#4852) --- website/docs/introduction/compose.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/introduction/compose.md b/website/docs/introduction/compose.md index 1953bd693b0..3d2b315123e 100644 --- a/website/docs/introduction/compose.md +++ b/website/docs/introduction/compose.md @@ -24,7 +24,7 @@ fun FooButton(text: String, onClick: () -> Unit) { // Violation for FooButton() #### Configurations: Choose _either_ of the following options: -* Augment default `functionPattern` to `'([A-Za-z][a-zA-Z0-9]*)|(`.*`)'` (default: `'([a-z][a-zA-Z0-9]*)|(`.*`)'`) +* Augment default `functionPattern` to `'[a-zA-Z][a-zA-Z0-9]*'` (default is: `'[a-z][a-zA-Z0-9]*'`) * Set `ignoreAnnotated` to `['Composable']` ### TopLevelPropertyNaming @@ -47,7 +47,7 @@ private val FooPadding = 16.dp #### Configurations: -* Set `constantPattern` to `'[A-Z][A-Za-z0-9]*'` (default: `'[A-Z][_A-Z0-9]*'`) +* Set `constantPattern` to `'[A-Z][A-Za-z0-9]*'` (default is: `'[A-Z][_A-Z0-9]*'`) ### LongParameterList