Skip to content

Commit

Permalink
⚒️ Fix function signature parentheses (SkriptLang#6358)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyhamAl-Ali authored and ShaneBeee committed Feb 2, 2024
1 parent 8a00485 commit f581395
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class StructFunction extends Structure {
public static final Priority PRIORITY = new Priority(400);

private static final Pattern SIGNATURE_PATTERN =
Pattern.compile("(?:local )?function (" + Functions.functionNamePattern + ")\\((.*)\\)(?:\\s*(?:::| returns )\\s*(.+))?");
Pattern.compile("^(?:local )?function (" + Functions.functionNamePattern + ")\\((.*?)\\)(?:\\s*(?:::| returns )\\s*(.+))?$");
private static final AtomicBoolean VALIDATE_FUNCTIONS = new AtomicBoolean();

static {
Expand Down

0 comments on commit f581395

Please sign in to comment.