UNPKG

@issue-linker/core

Version:
18 lines 614 B
// Infrastructure layer - Skip marker detection import { SKIP_MARKERS } from "../domain/constants.js"; /** * Find which skip marker is present in the text * @param text - Text to check for skip markers * @returns The matched skip marker text or null if not found */ export function findSkipMarker(text) { for (const marker of SKIP_MARKERS) { if (marker.test(text)) { // Get the actual matched string from the text const match = text.match(marker); return match ? match[0] : null; } } return null; } //# sourceMappingURL=skip-marker-checker.js.map