数値変換エントリで変換候補の数値以外の数が読みの数値以外の数より少ないとき変換できないバグを修正 #76
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#55 で導入した数値変換だと、"p# /#0/" のような、読みに含まれる数値以外の部分の数が変換候補に含まれる数値以外の部分の数より多い場合にエラーとしてしまっていました。
数値部分の数が読みと変換候補で同じかどうかだけチェックして、同じときは変換候補の "#X" (Xは一桁の整数) の部分を読みの数値部分に置換するように修正します。