isPathRelative method

bool isPathRelative (
  1. String path
)

Implementation

bool isPathRelative(String path) {
  final re = RegExp(r'^(?:[a-z-]+:|\/|#)', caseSensitive: false);
  return !re.hasMatch(path);

// 3.7.1 20180718
//  function isPathRelative(path) {
//      return !/^(?:[a-z-]+:|\/|#)/i.test(path);
//  }
}