% in attribute & category names (prod)735145d · no migration · Gate 2 7/7 · regression 51/51
Reported via screenshot on get-coffee: adding sugar-level attribute values like 50% / 100%
on the Attributes & Modifiers page raised “Value contains invalid
characters”. The server-side name allowlist now accepts % + * # ! $ = ° for
attribute names, values, and categories. Bonus fix found while testing: the old regex also rejected
Khmer combining marks (coeng/vowel signs are \p{M}, not letters), so real
Khmer names like ផ្អែម were being blocked too — now allowed.
The create-attribute modal on lumiere with a 50% value — previously rejected, now
submits cleanly (DB-verified persisted).
The exact flow from the bug screenshot — the edit-attribute modal’s “Add value” row
with 100%. No alert fires (the test listens for browser dialogs and fails if one appears).
Latent bug fixed alongside: ផ្អែម 25% (“sweet 25%”) contains Khmer coeng + vowel
signs that the old regex classified as invalid. Now accepted and rendered in the values list.
The Categories page shares the same validation pattern — a ZZ50% Off category creates
cleanly (test row, cleaned up after).