sp614x / optifine

1.77k stars 420 forks source link

[Resources] Limit resource path characters to vanilla limits #7552

Open Madis0 opened 9 months ago

Madis0 commented 9 months ago

Description of the new feature

OptiFine should limit the resource pack path allowed characters to vanilla limits:

The namespace and the path of a resource location should only contain the following symbols:

0123456789 Numbers abcdefghijklmnopqrstuvwxyz Lowercase letters _ Underscore - Hyphen/minus . Dot

The following characters are illegal in the namespace, but acceptable in the path:

/ Forward slash (directory separator) The preferred naming convention for either namespace or path is snake_case.

This would allow OptiFine-based resource packs to work better with: