playListingLimits top-level constant

Map<String, int> const playListingLimits

Play's limits on the listing text, in UTF-16 code units.

Counted over the file's bytes as stored — not whitespace-normalised, and not byte length. Both mistakes have been measured on real trees: normalising newlines under-counted a description by 27 characters against what Play reports, and wc -c over-counted another by 2 where the text contained multi-byte characters. A checker that reports headroom the store does not agree exists is worse than no checker.

Implementation

const playListingLimits = <String, int>{
  'title': 30,
  'short_description': 80,
  'full_description': 4000,
};