summaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-11-24 09:55:33 +0000
committerPJ Fanning <fanningpj@apache.org>2021-11-24 09:55:33 +0000
commit7b02f24e4767ac64c2ee83fc3063c0230804f8b0 (patch)
tree4f4e1a79367f69b4cf2d2338a77d0745621b6b0f /poi
parentaa92a67baf72d6a3c3cbc9c8b657d2e0ae5c34d6 (diff)
downloadpoi-7b02f24e4767ac64c2ee83fc3063c0230804f8b0.tar.gz
poi-7b02f24e4767ac64c2ee83fc3063c0230804f8b0.zip
[github-281] Thanks to This closes #281
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895284 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java b/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java
index c505314ae0..b86e7aba55 100644
--- a/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java
+++ b/poi/src/main/java/org/apache/poi/ss/format/CellFormatPart.java
@@ -104,7 +104,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]*)?)|(\\.[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,4})?\\])";