File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default function (context) {
42
42
[ Syntax . Image ] ( node ) {
43
43
let text = node . alt ;
44
44
// alt がない場合は無視する
45
- if ( text === undefined ) {
45
+ if ( text === undefined || text === null ) {
46
46
return ;
47
47
}
48
48
let retDesumasu = analyzeDesumasu ( text ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ var tester = new TextLintTester();
6
6
tester . run ( "1.1.5.図表のキャプション" , rule , {
7
7
valid : [
8
8
" と " ,
9
- " と "
9
+ " と " ,
10
+ ""
10
11
] ,
11
12
invalid : [
12
13
{
You can’t perform that action at this time.
0 commit comments