Skip to content

Commit

Permalink
Remove regex for detecting output
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Feb 23, 2024
1 parent a3a9d7f commit f10c633
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions custom_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
}

Expand Down

0 comments on commit f10c633

Please sign in to comment.