diff --git a/date_api/date_api.module b/date_api/date_api.module
index f686c1e..2b07e44 100644
--- a/date_api/date_api.module
+++ b/date_api/date_api.module
@@ -2139,7 +2139,7 @@ function date_limit_format($format, $granularity) {
   // Remove orphaned punctuation at the beginning of the string.
   $format = preg_replace('`^([\-/\.,:\'])`', '', $format);
   // Remove orphaned punctuation at the end of the string.
-  $format = preg_replace('([\-/\.,:\']$)', '', $format);
+  $format = preg_replace('([\-/,:\']$)', '', $format);
   $format = preg_replace('(\\$)', '', $format);
 
   // Trim any whitespace from the result.
