summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/image/image.field.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc
index f41df500f..9e276af76 100644
--- a/modules/image/image.field.inc
+++ b/modules/image/image.field.inc
@@ -465,7 +465,7 @@ function image_field_formatter_view($entity_type, $entity, $field, $instance, $l
// Check if the formatter involves a particular image style.
$matches = array();
- if (preg_match('/__([a-z0-9_]+)/', $display['type'], $matches)) {
+ if (preg_match('/__([a-z0-9_-]+)/', $display['type'], $matches)) {
$image_style = $matches[1];
}