textlint-chrome-extension icon indicating copy to clipboard operation
textlint-chrome-extension copied to clipboard

exception list of regular expression to omit rules

Open KEINOS opened this issue 6 years ago • 0 comments

TL;DR

Enhancement Feature: Exception list of a regular expression in option settings to omit rules that match.

TS;DR

Thank you for such a great extension! With the current options (provided in v2.1.1) fulfills most of my needs.

So far, I have one enhancement request. (Not strong though)

I set a rule that works as below and works great:

# RULE:one-white-space-between-zenkaku-and-hankaku-eiji

それはissueにあげてください。 → それは issue にあげてください。

But I would like it NOT to work in case of hashtags like below:

#chorme拡張 #linterおすすめ

Currently, I just ignore the warnings in that case.

But it would be nice if I can omit them by setting a regular expression in option something like below:

\s#[.]+\s
/[##][A-Za-zA-Za-z一-鿆0-90-9ぁ-ヶヲ-゚ー._-]+/gm
# chrome拡張 → # chrome 拡張

#chrome拡張 → #chorme拡張

KEINOS avatar Aug 27 '19 04:08 KEINOS