Skip to content

Commit

Permalink
Fix a confusing Regex in the Compose webpage (#4852)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed May 21, 2022
1 parent ee2e9a0 commit 486c894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/introduction/compose.md
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 486c894

Please sign in to comment.