Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.