Skip to content

Commit

Permalink
fix(2.2.2): allow 何十万人 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim authored and azu committed Dec 4, 2017
1 parent 1fbcee6 commit fb1c5a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/2.2.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function reporter(context) {
matchToReplace(
text,
/([一二三四五六七八九十壱弐参拾百〇]+)[兆億万]/g,
ignoreWhenMatched(/([一二三四五六七八九十壱弐参拾百〇]+)[兆億万]/g, toNumber)
ignoreWhenMatched(/(数|何)([一二三四五六七八九十壱弐参拾百〇]+)[兆億万]/g, toNumber)
);
matchToReplace(text, /([一二三四五六七八九十壱弐参拾百〇]+)つ/g, toNumber);
matchToReplace(text, /([一二三四五六七八九十壱弐参拾百〇]+)回/g, toNumber);
Expand Down
1 change: 1 addition & 0 deletions test/2.2.2-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ tester.run("2.2.2.算用数字と漢数字の使い分け", rule, {
"四角い",
"五大陸",
"数十億",
"何十万",
"しばしば数十万行以上に"
],
invalid: [
Expand Down

0 comments on commit fb1c5a0

Please sign in to comment.