sanitizeNodeName static method
- Replaces spaces with underscores and removes unsupported characters from
- node names, to ensure compatibility with parseTrackName().
- @param {string} name Node name to be sanitized.
- @return {string}
Implementation
/// * Replaces spaces with underscores and removes unsupported characters from
/// * node names, to ensure compatibility with parseTrackName().
/// *
/// * @param {string} name Node name to be sanitized.
/// * @return {string}
/// *
static String sanitizeNodeName(String name) {
final reg = RegExp(r"\s");
String tempName = name.replaceAll(reg, '_');
tempName = tempName.replaceAll(_reservedRe, '');
return tempName;
}