Here you can find the source of sanitizeAppAlias(String appAlias)
Parameter | Description |
---|---|
appAlias | appAlias |
public static String sanitizeAppAlias(String appAlias)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w w w . ja va 2s . co m*/ * Make sure the app alias only has alphanumeric and common punctuation characters. * * @param appAlias appAlias * @return sanitized app alias */ public static String sanitizeAppAlias(String appAlias) { if (appAlias == null) { return null; } else { return appAlias.replaceAll("[^\\w\\-'\"\\s]", ""); } } }