Feature names transformation into filenames rules
During features download, feature names are transformed into filenames. Below are the rules we use for transformation
FILENAME = FEATURE_NAME.replaceAll("[^a-zA-Z0-9]", " ").replaceAll("\s+", "-").trim().toLowerCase();
Replace all non alphanumeric characters with single space [^a-zA-Z0-9] → “ “
Replace multiple spaces with dash \s+ → “-“
Trim
Transform to lowercase
Example:
Feature name: Feature name transformation !#$%&'*+-/=?^_`{|}~
Transformed: feature-name-transformation