sindresorhus/eslint-plugin-unicorn
`string-content` rule: case insensitive matching
クローズ
#2,277 opened on 2024/02/07
enhancementhelp wanted
Repository metrics
- Stars
- (5,022 個のスター)
- PR merge metrics
- (平均マージ 4h 30m) (30d で 26 merged PRs)
説明
I'd like to be able to match a word case insensitively to be able to catch words that should be abbreviated in my project, eg End of Day -> EOD. I've tried using the (?i) regex mode modifier but it breaks the parsing, and using '/End of Day/i' doesn't work. Whatever the recommended way to do this is, even if it's just '[Ee][Nn][Dd]\\s+[Oo][Ff]\\s+[Dd][Aa][Yy]', could it be added to string-content.md?