File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ object CompilationState {
11
11
val domains = File (" lib/domains/tlds.txt" ).readLines().toHashSet()
12
12
}
13
13
14
- fun main (args : Array < String > ) {
14
+ fun main () {
15
15
val root = File (" lib/domains" )
16
16
root.walkTopDown().forEach {
17
17
if (it.isFile) {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ private fun findSchoolNames(parts: List<String>): List<String> {
42
42
}
43
43
44
44
private fun domainParts (emailOrDomain : String ): List <String > {
45
- return emailOrDomain.trim().toLowerCase ().substringAfter(' @' ).substringAfter(" ://" ).substringBefore(' :' ).split(' .' ).reversed()
45
+ return emailOrDomain.trim().lowercase ().substringAfter(' @' ).substringAfter(" ://" ).substringBefore(' :' ).split(' .' ).reversed()
46
46
}
47
47
48
48
internal fun checkSet (set : Set <String >, parts : List <String >): Boolean {
You can’t perform that action at this time.
0 commit comments