Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-262117

Language regex too broad

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.4, 1.21
    • None
    • Community Consensus
    • Internationalisation, Resource Packs
    • Low
    • Platform

      Language.UNSUPPORTED_FORMAT_PATTERN is intended to catch stray %d and %f placeholders in the translation resources and convert them to %s, since the translation component only supports this.

      However, the regex is currently too broad – in particular it will also catch and convert %%dark and %%food (to %%sark and %%sood respectively), despite these being escaped.

      This does not directly affect players, but it's a landmine waiting for mod developers and also your own dev team.

            Unassigned Unassigned
            Mirality Gavin Lambert
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: