notationSitePath function

String notationSitePath(
  1. String path
)

path with / between its parts and none before the first.

Implementation

String notationSitePath(String path) => path.replaceAll(r'\', '/').replaceFirst(RegExp(r'^(\./|/)+'), '');