Skip to content

Commit

Permalink
Fix blade regex to discover method call with args (#128)
Browse files Browse the repository at this point in the history
* fix blade regex to include methods with args

* fixup! fix blade regex to include methods with args
  • Loading branch information
TomasVotruba authored Sep 16, 2024
1 parent c64e187 commit 0d3003f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Enum/Template/BladeRegex.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ final class BladeRegex
public const TAG_REGEX = '#@\w+(?<contents>.*?)\n#';

/**
* @see https://regex101.com/r/G7zAue/1
* @see https://regex101.com/r/P1EaIR/1
* @var string
*/
public const METHOD_CALL_REGEX = '#\w+(\-\>|::)(?<desired_name>\w+)\(\)#';
public const METHOD_CALL_REGEX = '#\w+(\-\>|::)(?<desired_name>\w+)\((.*?)\)#';

/**
* @var string
Expand Down

0 comments on commit 0d3003f

Please sign in to comment.