diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index dc8be4a..619b307 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -472,7 +472,7 @@ function _color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style) {
   // Replace paths to images.
   foreach ($paths['map'] as $before => $after) {
     $before = base_path() . $paths['source'] . $before;
-    $before = preg_replace('`(^|/)(?!../)([^/]+)/../`', '$1', $before);
+    $before = preg_replace('`(^|/)(?!\.\./)([^/]+)/\.\./`', '$1', $before);
     $output = str_replace($before, $after, $output);
   }
 
