Skip to content

Commit b930884

Browse files
committed
fix(4.3.8): fix ' bug '
1 parent c0bbd80 commit b930884

File tree

2 files changed

+6
-41
lines changed

2 files changed

+6
-41
lines changed

src/4.3.8.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
*/
88
import {checkPair} from "./util/pair-checker";
99
export default function (context) {
10-
return checkPair(context, {
11-
left: "'",
12-
right: "'"
13-
});
10+
// do no anything
11+
return {};
1412
}

test/4.3.8-test.js

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,9 @@ var tester = new TextLintTester();
66
tester.run("4.3.8.一重引用符''", rule, {
77
valid: [
88
"彼は'×××'を参照してくださいと言った。",
9-
"- 彼は'×××'を参照してくださいと言った。"
9+
"- 彼は'×××'を参照してくださいと言った。",
10+
"Animal's bug.",
11+
`[ES5, ES6, ES2016, ES.Next: What's going on with JavaScript versioning?](http://benmccormick.org/2015/09/14/es5-es6-es2016-es-next-whats-going-on-with-javascript-versioning/ "ES5, ES6, ES2016, ES.Next: What's going on with JavaScript versioning?")`
1012
],
11-
invalid: [
12-
{
13-
text: "'対となるがない中かっこがない文章です。",
14-
errors: [
15-
{
16-
message: "'の対となる'が見つかりません。''",
17-
column: 1
18-
}
19-
]
20-
},
21-
{
22-
text: `'パラグラフをまたぐような
23-
24-
文章'は認められない。`,
25-
errors: [
26-
{
27-
message: "'の対となる'が見つかりません。''",
28-
column: 1
29-
},
30-
{
31-
message: "'の対となる'が見つかりません。''",
32-
column: 3
33-
}
34-
]
35-
},
36-
{
37-
// ListItem -> Paragraphなので
38-
text: "- 'これはプラグイン",
39-
errors: [
40-
{
41-
message: "'の対となる'が見つかりません。''",
42-
column: 3
43-
}
44-
]
45-
}
46-
]
13+
invalid: []
4714
});

0 commit comments

Comments
 (0)