I am using https://github.com/tbroadley/spellchecker-cli.
I have a JSON file that I'd like to run spellChecker on and it looks like this:
{
"abc.editGroupsMaxLengthError": "Maximum {{charLen}} characters"
}
I would like to know how can all words between {{ and }} be ignored by the spellchecker.
I tried with
[A-Za-z]+}}
as documented here https://github.com/tbroadley/spellchecker-cli#ignore-regexes to ignore regex.
but it doesn't seem to use }} or {{ for some reason.
How can this be fixed?
You can wrap your
{{...}}substrings with<!-- spellchecker-disable -->/<!-- spellchecker-enable -->tags, see this Github issue.So, make sure your JSON looks like
And the result will be
To wrap the
{{...}}strings in a certain file in Windows you could use PowerShell, e.g., for aspellchecker_test.jsonfile:In *nix, Perl is preferable: