diff --git a/README.md b/README.md index c722ec2..15dd646 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ npx case-police "**/*.md" path/to/file.html ### Ignores -You can add `@case-police-disable` in your file to disable the case check for the particular file, or add `@case-police-ignore xxx` to ignore certain words in that file. +You can add `@case-police-disable` in your file to disable the case check for the particular file, or add `@case-police-ignore xxx` to ignore certain words in that file (use comma to separate mutliple words). For example: diff --git a/packages/case-police/src/utils.ts b/packages/case-police/src/utils.ts index ecf0b34..952fe04 100644 --- a/packages/case-police/src/utils.ts +++ b/packages/case-police/src/utils.ts @@ -11,7 +11,7 @@ export const DICT_FOLDER = dictDir export const IGNORE_KEY = '@case-police-ignore' export const DISABLE_KEY = '@case-police-disable' -export const IGNORE_REGEX = /@case-police-ignore\s+(\S+)/g +export const IGNORE_REGEX = /@case-police-ignore\s+(.*)/g export const UTF8_RANGE = '[\u0080-\uFFFF]'