File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ function reporter(context) {
19
19
if ( ! isUserWrittenNode ( node , context ) ) {
20
20
return ;
21
21
}
22
- let text = getSource ( node ) ;
23
- let matchReg = matchCaptureGroupAll ( text , / ( [ 0 - 9 ] + ) / ) ;
24
- matchReg . forEach ( match => {
22
+ const text = getSource ( node ) ;
23
+ const matchRegExp = / ( [ 0 - 9 ] + ) /
24
+ matchCaptureGroupAll ( text , matchRegExp ) . forEach ( match => {
25
25
const { index, text} = match ;
26
26
report ( node , {
27
27
message : "算用数字は「半角」で表記します。" ,
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ function reporter(context) {
19
19
if ( ! isUserWrittenNode ( node , context ) ) {
20
20
return ;
21
21
}
22
- let text = getSource ( node ) ;
23
- let matchReg = matchCaptureGroupAll ( text , / ( [ A - Z ] + ) / ) ;
24
- matchReg . forEach ( match => {
22
+ const text = getSource ( node ) ;
23
+ const matchRegExp = / ( [ A - Z ] + ) / ;
24
+ matchCaptureGroupAll ( text , matchRegExp ) . forEach ( match => {
25
25
const { index, text} = match ;
26
26
report ( node , {
27
27
message : "アルファベットは「半角」で表記します。" ,
You can’t perform that action at this time.
0 commit comments