sanitizeNodeName static method

dynamic sanitizeNodeName(
  1. String name
)
  • 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

static sanitizeNodeName(String name) {
  final _reg = RegExp(r"\s");

  String _name = name.replaceAll(_reg, '_');
  _name = _name.replaceAll(_reservedRe, '');

  return _name;
}