Zum Inhalt springen
Kitbay
Einreichen

error-pattern-safety

MITAktualisiert am 11. Nov. 20265.616GitHub-Sterne

A maintainer skill with rules for regular expressions used to match errors in gh-aw's agentic engines.

Was der Skill vermittelt

A maintainer skill with rules for regular expressions used to match errors in gh-aw's agentic engines. It explains how a JavaScript pattern with the global flag that can match an empty string makes exec loop forever, lists patterns that must not be used, and shows safe alternatives and tests. It applies to the log parsing code in the gh-aw repository.

Funktionen

  • Spot regex patterns that can loop forever in JavaScript
  • Rewrite error patterns to avoid zero-width matches
  • Test error patterns for safety