Skip to content

Commit 614c35c

Browse files
Yoshino-Yukitaro吉野敬太郎
and
吉野敬太郎
authored
fix: fix space after question rule's error message (#61)
Co-authored-by: 吉野敬太郎 <[email protected]>
1 parent 9ab1a44 commit 614c35c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/textlint-rule-ja-space-after-question/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function reporter(context) {
2121
const matchAfter = /( )[^\n]/;
2222
matchCaptureGroupAll(text, matchAfter).forEach(match => {
2323
const {index} = match;
24-
return report(node, new RuleError("文末に感嘆符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。", {
24+
return report(node, new RuleError("文末に疑問符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。", {
2525
index: index,
2626
fix: fixer.replaceTextRange([index, index + 1], " ")
2727
}));

packages/textlint-rule-ja-space-after-question/test/index-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tester.run("疑問符(?)", rule, {
2525
output: "驚きの速さ!? これが新製品のキャッチコピーでした? これは問題なし",
2626
errors: [
2727
{
28-
message: "文末に感嘆符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
28+
message: "文末に疑問符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
2929
column: 8
3030
}
3131
]
@@ -35,7 +35,7 @@ tester.run("疑問符(?)", rule, {
3535
output: "どう操作したらよいのか? というユーザーの疑問に答えます。",
3636
errors: [
3737
{
38-
message: "文末に感嘆符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
38+
message: "文末に疑問符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
3939
line: 1,
4040
column: 13
4141
}

0 commit comments

Comments
 (0)