aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2021-03-19 09:40:10 +0000
committerDominik Stadler <centic@apache.org>2021-03-19 09:40:10 +0000
commit4027d8ac67ae3d72d939dabc15db88235e991ea5 (patch)
tree9ed30a4d66754bfbf8396c00d19e99f0b57fd8bd /src
parent82bf04669fa90728ccae201e145dc941188e1b92 (diff)
downloadpoi-4027d8ac67ae3d72d939dabc15db88235e991ea5.tar.gz
poi-4027d8ac67ae3d72d939dabc15db88235e991ea5.zip
Allow negative numbers in conditional part of format string
Closes #229 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887802 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/poi/ss/format/CellFormatPart.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ss/format/CellFormatPart.java b/src/java/org/apache/poi/ss/format/CellFormatPart.java
index 2c65ca865d..c03dbc5795 100644
--- a/src/java/org/apache/poi/ss/format/CellFormatPart.java
+++ b/src/java/org/apache/poi/ss/format/CellFormatPart.java
@@ -108,7 +108,7 @@ public class CellFormatPart {
static {
// A condition specification
String condition = "([<>=]=?|!=|<>) # The operator\n" +
- " \\s*([0-9]+(?:\\.[0-9]*)?)\\s* # The constant to test against\n";
+ " \\s*(-?[0-9]+(?:\\.[0-9]*)?)\\s* # The constant to test against\n";
// A currency symbol / string, in a specific locale
String currency = "(\\[\\$.{0,3}-[0-9a-f]{3}\\])";