Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18n.t: fix format_number_header #628

Merged
merged 1 commit into from
May 3, 2016
Merged

I18n.t: fix format_number_header #628

merged 1 commit into from
May 3, 2016

Conversation

takahashim
Copy link
Collaborator

format_number_header%pJを正しく使えないようなので修正しました。

percents.each_with_indexの中で、argsをインデックスアクセスに使っているのにargs.deleteで破壊的に変更しているので、%pXXが複数あると正常に動かなかったようです。argsの変更はループの外で行うようにしました。

@takahashim
Copy link
Collaborator Author

ちなみに、%XXX(Xは1文字〜3文字)のXの範囲制限を厳しくして、アルファベット(大文字小文字両方可)のみにして、数字と_は無視するようにしています。

@kdmsnr kdmsnr merged commit 55673ab into master May 3, 2016
@kdmsnr kdmsnr added this to the 2.1.0 milestone May 5, 2016
@takahashim takahashim deleted the fix-i18n-t branch October 29, 2016 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants