strip method

  1. @visibleForTesting
String strip(
  1. String line
)

Strips comments (trailing or whole-line).

Implementation

@visibleForTesting
String strip(String line) => line.replaceAll(_comment, '').trim();