]> git.ipfire.org Git - thirdparty/babel.git/commit
Correctly parse number pattern with '-' on the end 66/head
authorSjoerd Langkemper <sjoerd@byte.nl>
Wed, 6 Nov 2013 10:32:28 +0000 (11:32 +0100)
committerSjoerd Langkemper <sjoerd@byte.nl>
Wed, 6 Nov 2013 10:32:28 +0000 (11:32 +0100)
commit3ec7bb104e808d1fda16fbf9fec4b9d7efccaa3f
tree83545eac701a86dcd0ca075da09c04e755059572
parentd764b35bc3910b8f67ff811752df615afa7667f6
Correctly parse number pattern with '-' on the end

For the nl_NL locale, negative numbers would be formatted just like
positive numbers by format_currency. By changing NUMBER_TOKEN to
no longer have a minus sign in it, the minus sign on the end
of the negative pattern for nl_NL is correctly parsed.
babel/numbers.py
tests/test_numbers.py