Skip to content

Commit b546052

Browse files
authored
docs: update README regexp (#256)
1 parent df465eb commit b546052

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,20 @@ const b = styles['my_other-class'];
9797

9898
Please note that no options are required. However, depending on your configuration, you may need to customise these options.
9999

100-
| Option | Default value | Description |
101-
| -------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
102-
| `additionalData` | `undefined` | An optional string to append to the top of source files. |
103-
| `allowUnknownClassnames` | `false` | Disables TypeScript warnings on unknown classnames (for default imports only). |
104-
| `classnameTransform` | `"asIs"` | See [`classnameTransform`](#classnameTransform) below. |
105-
| `customMatcher` | `"\\.module\\.(c\|le\|sa\|sc)ss$"` | Changes the file extensions that this plugin processes. |
106-
| `customRenderer` | `false` | See [`customRenderer`](#customRenderer) below. |
107-
| `customTemplate` | `false` | See [`customTemplate`](#customTemplate) below. |
108-
| `goToDefinition` | `false` | Enables jump to definition. See [`goToDefinition`](#goToDefinition) below. |
109-
| `noUncheckedIndexedAccess` | `false` | Enable for compatibility with TypeScript's `noUncheckedIndexedAccess`. |
110-
| `namedExports` | `true` | Enables named exports for compatible classnames. |
111-
| `dotenvOptions` | `{}` | Provides options for [`dotenv`](https://github.com/motdotla/dotenv#options). Note that this plugin only accepts a `string` value for `path`. |
112-
| `postcssOptions` | `{}` | See [`postcssOptions`](#postcssOptions) below. |
113-
| `rendererOptions` | `{}` | See [`rendererOptions`](#rendererOptions) below. |
100+
| Option | Default value | Description |
101+
| -------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
102+
| `additionalData` | `undefined` | An optional string to append to the top of source files. |
103+
| `allowUnknownClassnames` | `false` | Disables TypeScript warnings on unknown classnames (for default imports only). |
104+
| `classnameTransform` | `"asIs"` | See [`classnameTransform`](#classnameTransform) below. |
105+
| `customMatcher` | `"\\.module\\.((c\|le\|sa\|sc)ss\|styl)$"` | Changes the file extensions that this plugin processes. |
106+
| `customRenderer` | `false` | See [`customRenderer`](#customRenderer) below. |
107+
| `customTemplate` | `false` | See [`customTemplate`](#customTemplate) below. |
108+
| `goToDefinition` | `false` | Enables jump to definition. See [`goToDefinition`](#goToDefinition) below. |
109+
| `noUncheckedIndexedAccess` | `false` | Enable for compatibility with TypeScript's `noUncheckedIndexedAccess`. |
110+
| `namedExports` | `true` | Enables named exports for compatible classnames. |
111+
| `dotenvOptions` | `{}` | Provides options for [`dotenv`](https://github.com/motdotla/dotenv#options). Note that this plugin only accepts a `string` value for `path`. |
112+
| `postcssOptions` | `{}` | See [`postcssOptions`](#postcssOptions) below. |
113+
| `rendererOptions` | `{}` | See [`rendererOptions`](#rendererOptions) below. |
114114

115115
```json
116116
{

src/helpers/cssExtensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export type isCSSFn = (fileName: string) => boolean;
22
export type isRelativeCSSFn = (fileName: string) => boolean;
33

4-
const DEFAULT_REGEXP = /\.module\.(((c|le|sa|sc)ss)|styl)$/;
4+
const DEFAULT_REGEXP = /\.module\.((c|le|sa|sc)ss|styl)$/;
55

66
const isRelative = (fileName: string) => /^\.\.?($|[\\/])/.test(fileName);
77

0 commit comments

Comments
 (0)