Skip to content

Commit

Permalink
(i?) -> (?i) (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
jssblck committed Jan 16, 2024
1 parent cbedc6d commit ca9f7d9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/features/custom-license-and-keyword-searches.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ This will match "Proprietary License", "proprietary license", "proprietary Licen

### Ignoring case

You can ignore case by using the case-insensitive [flag](./custom-license-and-keyword-search-regular-expression-syntax.md#character-classes#groupings-and-flags), `i`. This is done by adding `(i?)` to your regular expression. Everything after `(?i)` will be matched case-insenitively.
You can ignore case by using the case-insensitive [flag](./custom-license-and-keyword-search-regular-expression-syntax.md#character-classes#groupings-and-flags), `i`. This is done by prepending `(?i)` to your regular expression. Everything after `(?i)` will be matched case-insenitively.

```
(i?)custom license
(?i)custom license
```

This will match "Custom License", "CUSTOM LICENSE", "custom license" or "CusTOm LiCenSe".
Expand Down Expand Up @@ -248,7 +248,3 @@ You can also set the `ignoreOrgWideCustomLicenseScanConfigs` flag to `true` in y
version: 3
ignoreOrgWideCustomLicenseScanConfigs: true
```




0 comments on commit ca9f7d9

Please sign in to comment.