extractFeatureNameFromPath function

String? extractFeatureNameFromPath(
  1. String path
)

Implementation

String? extractFeatureNameFromPath(String path) {
  final normalized = _normalizePath(path);
  return _pathFeatureCache.putIfAbsent(normalized, () {
    final match = _featuresPathRegExp.firstMatch(normalized);
    return match != null && match.groupCount >= 1 ? match.group(1) : null;
  });
}