Skip to content

Commit e4ef656

Browse files
committed
refactor: format style
1 parent 87c735d commit e4ef656

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/2.1.8.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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, /([-]+)/);
24-
matchReg.forEach(match => {
22+
const text = getSource(node);
23+
const matchRegExp = /([-]+)/
24+
matchCaptureGroupAll(text, matchRegExp).forEach(match => {
2525
const {index, text} = match;
2626
report(node, {
2727
message: "算用数字は「半角」で表記します。",

src/2.1.9.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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, /([-]+)/);
24-
matchReg.forEach(match => {
22+
const text = getSource(node);
23+
const matchRegExp = /([-]+)/;
24+
matchCaptureGroupAll(text, matchRegExp).forEach(match => {
2525
const {index, text} = match;
2626
report(node, {
2727
message: "アルファベットは「半角」で表記します。",

0 commit comments

Comments
 (0)