setProperties not accepting (,), / characters


I have a Figma plugin where I try to set variant properties for instances via plugin code.

If the property is plain string, it works fine. But if the proposed property has a bracket or slash, I mean ( , ) , /, it is saying Unable to find a variant with those property values.

Does it have a convention to avoid certain characters? I need to speak to my designer then


A comma (,) cannot be included in variant property values. The backslash (\) must be mirrored, that is, the variant property value must be contained \\. Brackets ((, )) and slash (/) should not cause any errors.