src/plugins/addPlugin.js
/**
 * sanitizePluginName returns a new sanitized plugin name.
 * If a character in the pluginName is not in the valid char set [A-Za-z0-9_-]
 * @param {string} pluginName
 */
sanitizePluginName returns a new sanitized plugin name.
If a character in the pluginName is not in the valid char set [A-Za-z0-9_-]
@param {string} pluginName
sanitizePluginName returns a new sanitized plugin name . If a character in the pluginName is not in the valid char set [ A - Za - z0 - 9_ - ] @param { string } pluginName
function sanitizePluginName(pluginName) {
  let sanitizedName = "";
  for (let i = 0; i < pluginName.length; i++) {
    let toInsert = "_";
    const char = pluginName.charAt(i);
    if (validCharSet.has(char)) {
      toInsert = char;
    }
    sanitizedName += toInsert;
  }
  return sanitizedName;
}
function sanitizePluginName ( pluginName ) { let sanitizedName = "" ; for ( let i = 0 ; i < pluginName . length ; i ++ ) { let toInsert = "_" ; const char = pluginName . charAt ( i ) ; if ( validCharSet . has ( char ) ) { toInsert = char ; } sanitizedName += toInsert ; } return sanitizedName ; }
sanitizePluginName returns a new sanitized plugin name.
sanitizePluginName returns a new sanitized plugin name .