diff --git a/build.gradle b/build.gradle index fb65198..a067fc1 100644 --- a/build.gradle +++ b/build.gradle @@ -4,13 +4,12 @@ apply plugin: 'kotlin' sourceCompatibility = 1.8 buildscript { - ext.kotlin_version = '1.1.4' repositories { mavenCentral() } dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21" } } @@ -33,7 +32,7 @@ sourceSets { } dependencies { - compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + compile "org.jetbrains.kotlin:kotlin-stdlib:1.3.21" compile 'net.portswigger.burp.extender:burp-extender-api:1.7.22' compile 'org.python:jython-standalone:2.7.0' } diff --git a/src/Request.kt b/src/Request.kt index 1b02d19..b3e92db 100644 --- a/src/Request.kt +++ b/src/Request.kt @@ -52,7 +52,7 @@ open class Request(val template: String, val words: List, val learnBori return 0 } try { - return Integer.parseInt(response?.split(delimiters = " ", ignoreCase = false, limit = 3)?.get(1)) + return Integer.parseInt(response?.split(" ", ignoreCase = false, limit = 3)?.get(1)) } catch (e: Exception) { return 0 }