Skip to content

Commit

Permalink
Fixing mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mbodin committed Dec 4, 2023
1 parent 5796920 commit 9a8a009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntax/attribute_value.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/test_jsx.re
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ let svg = (
(
"transform with random spacing",
[<g transform="translate ( 200 , 200) rotate(1) matrix(-0,1,.1,.0,1e-5,1.E5) scale ( 1 , 0 ) skewY(-0.)"></g>],
[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.)])], [])],
),
],
),
Expand Down

0 comments on commit 9a8a009

Please sign in to comment.