diff --git a/syntax/attribute_value.ml b/syntax/attribute_value.ml index 0ae46c003..4abef0d83 100644 --- a/syntax/attribute_value.ml +++ b/syntax/attribute_value.ml @@ -415,7 +415,7 @@ let rec transform = fun ?separated_by:_ ?default:_ loc name s -> if does_match regexp_wsp s then Some [%expr []] - else if does_match regexp_wsp s then + else if does_match regexp s then begin let item = Re_str.matched_group 1 s in let rest = Re_str.matched_group 2 s in diff --git a/test/test_jsx.re b/test/test_jsx.re index 3f811a9b8..b5c68f006 100644 --- a/test/test_jsx.re +++ b/test/test_jsx.re @@ -344,7 +344,7 @@ let svg = ( ( "transform with random spacing", [], - [g(~a:[a_transform([`Translate((200., Some(200.))), `Rotate((1., None)), `Matrix((-0., 1, 0.1, 0., 1e-5, 1e5)), `Scale((1., Some 0.)), `SkewY(-0.)])], [])], + [g(~a=[a_transform([`Translate((200., Some(200.))), `Rotate((1., None)), `Matrix((-0., 1, 0.1, 0., 1e-5, 1e5)), `Scale((1., Some(0.))), `SkewY(-0.)])], [])], ), ], ),