diff options
author | Nick Burch <nick@apache.org> | 2011-05-03 05:42:41 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2011-05-03 05:42:41 +0000 |
commit | 6576890e534dda21ac1167aa1ecefc2df72a6fc5 (patch) | |
tree | 05f758891ed2d3e7373657e411423f65f02be69e /src/java | |
parent | 692bab9b9ee10e507e930f92b440351bf7c409bc (diff) | |
download | poi-6576890e534dda21ac1167aa1ecefc2df72a6fc5.tar.gz poi-6576890e534dda21ac1167aa1ecefc2df72a6fc5.zip |
Fix bug #51115 - Handle DataFormatter escaping of "." in the same way as "-" and "/"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1098917 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/poi/ss/usermodel/DataFormatter.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/ss/usermodel/DataFormatter.java b/src/java/org/apache/poi/ss/usermodel/DataFormatter.java index 6c9412383d..9ae8b6bb5f 100644 --- a/src/java/org/apache/poi/ss/usermodel/DataFormatter.java +++ b/src/java/org/apache/poi/ss/usermodel/DataFormatter.java @@ -347,6 +347,7 @@ public class DataFormatter { String formatStr = pFormatStr; formatStr = formatStr.replaceAll("\\\\-","-"); formatStr = formatStr.replaceAll("\\\\,",","); + formatStr = formatStr.replaceAll("\\\\\\.","."); // . is a special regexp char formatStr = formatStr.replaceAll("\\\\ "," "); formatStr = formatStr.replaceAll("\\\\/","/"); // weird: m\\/d\\/yyyy formatStr = formatStr.replaceAll(";@", ""); |