toGlob method

List<String> toGlob()

Implementation

List<String> toGlob() {
  final List<String> globs = [];
  for (final elementLoop in split("\n")) {
    final element = elementLoop.trim();
    if (RegExp("^[#!]", caseSensitive: false).hasMatch(element)) {
      continue;
    }
    if (element.isEmpty) {
      continue;
    }
    globs.add(element.toGlobPattern());
  }
  return globs;
}