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) {
1919 if ( ! isUserWrittenNode ( node , context ) ) {
2020 return ;
2121 }
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 => {
2525 const { index, text} = match ;
2626 report ( node , {
2727 message : "算用数字は「半角」で表記します。" ,
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ function reporter(context) {
1919 if ( ! isUserWrittenNode ( node , context ) ) {
2020 return ;
2121 }
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 => {
2525 const { index, text} = match ;
2626 report ( node , {
2727 message : "アルファベットは「半角」で表記します。" ,
You can’t perform that action at this time.
0 commit comments