MCPcopy Create free account
hub / github.com/IJHack/QtPass / isGrepHeaderLine

Function isGrepHeaderLine

src/pass.cpp:554–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552
553namespace {
554auto isGrepHeaderLine(const QString &rawLine, const QString &trimmedLine)
555 -> bool {
556 // ANSI-colored header starts with the blue escape; plain-text fallback:
557 // a non-indented line ending with ':' (pass grep format without color)
558 return rawLine.startsWith(QStringLiteral("\x1B[94m")) ||
559 (!rawLine.startsWith(' ') && !rawLine.startsWith('\t') &&
560 trimmedLine.endsWith(':'));
561}
562} // namespace
563
564/**

Callers 1

parseGrepOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected