parseNoProxy function

List<String> parseNoProxy(
  1. String? noProxy
)

Parse NO_PROXY string into a list of patterns.

Implementation

List<String> parseNoProxy(String? noProxy) {
  if (noProxy == null || noProxy.isEmpty) return [];
  return noProxy
      .split(RegExp(r'[,\s]+'))
      .where((s) => s.isNotEmpty)
      .map((s) => s.trim())
      .toList();
}