Skip to content

Commit fb1c5a0

Browse files
takahashimazu
authored andcommitted
fix(2.2.2): allow 何十万人 (#63)
1 parent 1fbcee6 commit fb1c5a0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/2.2.2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function reporter(context) {
167167
matchToReplace(
168168
text,
169169
/([]+)[]/g,
170-
ignoreWhenMatched(/([]+)[]/g, toNumber)
170+
ignoreWhenMatched(/(|)([]+)[]/g, toNumber)
171171
);
172172
matchToReplace(text, /([]+)/g, toNumber);
173173
matchToReplace(text, /([]+)/g, toNumber);

test/2.2.2-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ tester.run("2.2.2.算用数字と漢数字の使い分け", rule, {
9595
"四角い",
9696
"五大陸",
9797
"数十億",
98+
"何十万",
9899
"しばしば数十万行以上に"
99100
],
100101
invalid: [

0 commit comments

Comments
 (0)