Skip to content

Commit

Permalink
#114 | Update regex for parsing the parameter of function
Browse files Browse the repository at this point in the history
  • Loading branch information
PatilShreyas committed Jul 28, 2024
1 parent 9f0fc7b commit 604ee69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import dev.shreyaspatil.composeCompilerMetricsGenerator.core.model.composables.C
*/
object ComposableReportParser : Parser<String, ComposablesReport> {
private val REGEX_COMPOSABLE_FUNCTION = "(?:(.*))fun (\\w*)".toRegex()
private val REGEX_COMPOSABLE_PARAMETERS = "(?:(stable|unstable|) (\\w*:\\s.*))".toRegex()
private val REGEX_COMPOSABLE_PARAMETERS = "(?:(stable|unstable|\\w+) (\\w*:\\s.*))".toRegex()

/**
* Parses all composable functions
Expand Down

0 comments on commit 604ee69

Please sign in to comment.