Skip to content

Commit f207c65

Browse files
inouetakuyaazu
authored andcommitted
Fix: 4.2.2 error message (#64)
1 parent 7572925 commit f207c65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/4.2.2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function reporter(context) {
4242
const { index } = match;
4343
return report(
4444
node,
45-
new RuleError("文末に感嘆符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。", {
45+
new RuleError("文末に疑問符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。", {
4646
index: index,
4747
fix: fixer.replaceTextRange([index, index + 1], " ")
4848
})

test/4.2.2-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tester.run("4.2.2.疑問符(?)", rule, {
2727
output: "驚きの速さ!? これが新製品のキャッチコピーでした? これは問題なし",
2828
errors: [
2929
{
30-
message: "文末に感嘆符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
30+
message: "文末に疑問符を使用し、後に別の文が続く場合は、直後に全角スペースを挿入します。",
3131
column: 8
3232
}
3333
]

0 commit comments

Comments
 (0)