Skip to content

Commit

Permalink
Correct replacement logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tresat committed May 22, 2024
1 parent ad3e19a commit da3eba8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public final class NiaSupport {
private NiaSupport() { /* Not instantiable */ }

public static boolean isNiaProject(Project project) {
return Objects.equals(project.getRootProject().getName().replaceAll("\\\\-", ""), NiaSupport.NIA_PROJECT_NAME);
return Objects.equals(project.getRootProject().getName().replace("-", ""), NiaSupport.NIA_PROJECT_NAME);
}

public static void configureNiaLibrary(Project project, AndroidSoftware dslModel) {
Expand Down

0 comments on commit da3eba8

Please sign in to comment.