From f10c6333c51a7e3d3038e8ad3e8f7de3e87c8df7 Mon Sep 17 00:00:00 2001 From: Brandon Jordan Date: Fri, 23 Feb 2024 18:53:54 -0500 Subject: [PATCH] Remove regex for detecting output --- custom_actions.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/custom_actions.go b/custom_actions.go index fab4cd4..ffa087e 100644 --- a/custom_actions.go +++ b/custom_actions.go @@ -128,7 +128,6 @@ func checkCustomActionUsage() { } func makeCustomActionsHeader() { - var outputActionRegex = regexp.MustCompile(`(?:must)?[o|O]utput(?:OrClipboard)?\((.*?)\)`) var customActionsHeader strings.Builder customActionsHeader.WriteString("if ShortcutInput {\n") customActionsHeader.WriteString(" const inputType = typeOf(ShortcutInput)\n") @@ -167,13 +166,7 @@ func makeCustomActionsHeader() { } customActionsHeader.WriteString(customAction.body) - - if !outputActionRegex.MatchString(customAction.body) { - customActionsHeader.WriteString("\noutput(nil)") - } - customActionsHeader.WriteRune('\n') - customActionsHeader.WriteString(" }\n") }