Skip to content

Commit 7db5a5e

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Brian Horakh <35611074+elasticdotventures@users.noreply.github.com>
1 parent 47cb764 commit 7db5a5e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

functions/lib/svg-renderer.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,12 +1094,12 @@ function detectScene(panel: ComicPanel): ComicScene {
10941094
}
10951095

10961096
const haystack = `${panel.action || ''} ${panel.dialogue || ''} ${panel.robotThought || ''} ${panel.visualFocus || ''}`.toLowerCase();
1097-
if (/\bwhiteboard|diagram|arrow|architecture|schema|chart\b/.test(haystack)) return 'whiteboard';
1098-
if (/\bincident|outage|pager|status|sev|war room|rollback|postmortem\b/.test(haystack)) return 'incident_room';
1099-
if (/\bmeeting|standup|roadmap|kpi|slide|stakeholder|executive\b/.test(haystack)) return 'meeting';
1100-
if (/\bdns|tcp|packet|cache|cdn|api|queue|service|network\b/.test(haystack)) return 'network';
1097+
if (/\b(?:whiteboard|diagram|arrow|architecture|schema|chart)\b/.test(haystack)) return 'whiteboard';
1098+
if (/\b(?:incident|outage|pager|status|sev|war room|rollback|postmortem)\b/.test(haystack)) return 'incident_room';
1099+
if (/\b(?:meeting|standup|roadmap|kpi|slide|stakeholder|executive)\b/.test(haystack)) return 'meeting';
1100+
if (/\b(?:dns|tcp|packet|cache|cdn|api|queue|service|network)\b/.test(haystack)) return 'network';
11011101
if (/\b(type|typing|terminal|deploy|build|compile|keyboard|cursor|shell|screen|monitor|reply|debug|logs?|ssh|kubectl|merge|commit|branch|prod|production|prompt|code)\b/.test(haystack)) return 'terminal';
1102-
if (/\bdesk|laptop|coffee|keyboard|chair\b/.test(haystack)) return 'desk';
1102+
if (/\b(?:desk|laptop|coffee|keyboard|chair)\b/.test(haystack)) return 'desk';
11031103
return 'plain';
11041104
}
11051105

0 commit comments

Comments
 (0)