Is there a way to ignore domains using the 'words' array? #3131
-
I have a JSON file with translations: {
"test": "foo fakedomain.org ..."
} The word fakedomain is marked as a mistake. I want to ignore the whole domain but keep seeing "fakedomain" as a mistake elsewhere in the file or in the same string. I tried adding "fakedomain.org" to the words array for that language but it didn't work, I assume because of the dot. Is there a way to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There is a built-in rule that can be enabled for URLs https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell#exclude-patterns but I'm not sure if it would pick it up without the protocol |
Beta Was this translation helpful? Give feedback.
-
It is possible to ignore it using cspell.json {
"ignoreRegExpList": [
"/fakedomain\\.org/gi"
]
} You might want to consider using "overrides": [
{
"filename": "**/*.json",
"ignoreRegExpList": [
"/fakedomain\\.org/gi"
]
}
] |
Beta Was this translation helpful? Give feedback.
It is possible to ignore it using
ignoreregExpList
.cspell.json
You might want to consider using
overrides
so it only applies to certain files: