We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backquote (`) を含む文字列の二重引用符(")チェックがうまく動かない場合があるようです。
{ "rules": { "preset-jtf-style": true } }
"a" "`a`"
$ npx textlint -c ./textlintrc test.md /tmp/bugreport/test.md 1:9 error "の対となる"が見つかりません。"" jtf-style/4.3.5.二重引用符 ✖ 1 problem (1 error, 0 warnings)
正常終了する
対となる二重引用符が見つからないというエラーになる
The text was updated successfully, but these errors were encountered:
ご報告ありがとうございます。
"`a`"
https://textlint.github.io/astexplorer/
AST的にNodeが次のように3つのNodeとして分解されます。
<Str><Code><Str>
個別の <Str> の中で " の対を探してるので見つけられてないみたいですね。 <Str><Str> を結合した中で探索するのが正しそうですね。
<Str>
"
<Str><Str>
textlint-rule-preset-JTF-style/src/util/pair-checker.js
Line 27 in 3f428de
Sorry, something went wrong.
📝 同じことをする別のルールは、Paragraphの中身で ペアを探索して、Codeの中は無視する実装だった https://github.com/textlint-rule/textlint-rule-no-unmatched-pair/blob/1a030f2eae0941dea534b77fe0ecb8a9dde9e098/src/textlint-rule-no-unmatched-pair.js これはこれでコード内にペアがあるとおかしくなりそうな気がする…
https://github.com/textlint-ja/textlint-rule-preset-JTF-style/releases/tag/v2.3.10 としてリリースしました。 対応ありがとうございます!
No branches or pull requests
backquote (`) を含む文字列の二重引用符(")チェックがうまく動かない場合があるようです。
再現手順
設定(textlintrc)
試した文章(test.md)
実行結果
期待する結果
正常終了する
実際の結果
対となる二重引用符が見つからないというエラーになる
The text was updated successfully, but these errors were encountered: