We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be1ef2 commit da63f37Copy full SHA for da63f37
1 file changed
src/main/kotlin/com/mairwunnx/projectessentials/core/api/v1/module/ModuleAPI.kt
@@ -31,7 +31,7 @@ object ModuleAPI {
31
* @since 2.0.0-SNAPSHOT.1.
32
*/
33
fun getModuleByName(name: String) =
34
- getAllModules().find { it.name == name }?.let {
+ getAllModules().find { it.name.toLowerCase() == name.toLowerCase() }?.let {
35
return@let it
36
} ?: throw ModuleNotFoundException(
37
"Module with name $name not found and not processed."
@@ -43,6 +43,6 @@ object ModuleAPI {
43
44
45
fun isModuleExist(module: String) = ModuleProcessor.getModules().find {
46
- it.name == module
+ it.name.toLowerCase() == module.toLowerCase()
47
}.let { return@let it != null }
48
}
0 commit comments