[Fix] img-redundant-alt: fixed multibyte character support#970
[Fix] img-redundant-alt: fixed multibyte character support#9701 commit merged intojsx-eslint:mainfrom
img-redundant-alt: fixed multibyte character support#970Conversation
ljharb
left a comment
There was a problem hiding this comment.
you'll need import includes from 'array-includes'; rather than .includes but otherwise this looks great!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #970 +/- ##
=======================================
Coverage 99.01% 99.02%
=======================================
Files 105 105
Lines 1628 1634 +6
Branches 578 579 +1
=======================================
+ Hits 1612 1618 +6
Misses 16 16 ☔ View full report in Codecov by Sentry. |
img-redundant-alt: fixed multibyte character support
|
@makotot hm, i rebased this and fixed one of the |
|
nvm, i think i figured it out |
|
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
|
Didn't reply due to sleep time. Thanks 🙌 |
Fixes #969.
Is it possible to replace the word boundary
\bwith\s+? Although it has passed unit tests.Also, it seemed more natural not to check word boundaries for multibyte characters, which may be a difficult point to handle also related to #417.
(?!{)is removed because there is no difference in the unit test results whether it is there or not.