react-native-rename icon indicating copy to clipboard operation
react-native-rename copied to clipboard

feat: allow special characters (like &, -, −, etc.)

Open ElForastero opened this issue 4 years ago • 0 comments

App name can consists of many characters that don't fit into \p{Letter} regexp. For example, the app I currently working on contains &. Like m&ms. Also different type of hyphens are also popular.

  1. clearAppName clears the name from any non-alphanumeric characters for usage in paths and as identifiers.
  2. escapeEntities escapes &<> in names for usage in XML files
  3. isValidAppStoreName is a draft for checking if an app name fits into AppStore rules
  4. --force option to ignore AppStore rules (I find it useful if targeting only GooglePlay)
  5. package.json name converted toLowerCase since only lowercased package names are valid

Yeah... seems like prettier reformatted some lines I didn't touch. 😅

ElForastero avatar Feb 17 '21 17:02 ElForastero