Skip to content

Commit

Permalink
fix: fix space after question rule's error message (#61)
Browse files Browse the repository at this point in the history
Co-authored-by: 吉野敬太郎 <yoshinoyukitarou@yoshinokeitarounoMacBook-Pro.local>
  • Loading branch information
Yoshino-Yukitaro and 吉野敬太郎 committed Mar 10, 2024
1 parent 9ab1a44 commit 614c35c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function reporter(context) {
const matchAfter = /?( )[^\n]/;
matchCaptureGroupAll(text, matchAfter).forEach(match => {
const {index} = match;
return report(node, new RuleError("文末に感嘆符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。", {
return report(node, new RuleError("文末に疑問符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。", {
index: index,
fix: fixer.replaceTextRange([index, index + 1], " ")
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tester.run("疑問符(?)", rule, {
output: "驚きの速さ!? これが新製品のキャッチコピーでした? これは問題なし",
errors: [
{
message: "文末に感嘆符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
message: "文末に疑問符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
column: 8
}
]
Expand All @@ -35,7 +35,7 @@ tester.run("疑問符(?)", rule, {
output: "どう操作したらよいのか? というユーザーの疑問に答えます。",
errors: [
{
message: "文末に感嘆符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
message: "文末に疑問符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
line: 1,
column: 13
}
Expand Down

0 comments on commit 614c35c

Please sign in to comment.