Skip to content

Commit

Permalink
fix function of extractModuleName to make it return the path of feature
Browse files Browse the repository at this point in the history
  • Loading branch information
El-jawsagy committed Jan 8, 2024
1 parent 8868ee5 commit feff1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/utilities/string_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ extension StringExtensions on String {

/// Extracts module name by replacing '--on=' in the string.
String extractModuleName() {
return this.replaceAll('--on=', '');
return this.split('--on=').last;
}

/// Converts the first letter of the string to lowercase.
Expand Down

0 comments on commit feff1d8

Please sign in to comment.