Created
August 9, 2022 07:50
-
-
Save stella6767/e68c91981a62b1755ed0f528ca79db55 to your computer and use it in GitHub Desktop.
pathParsingTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun pathParsingTest() { | |
val path = "/v1/members" | |
log.info { | |
path.split(delimiters = arrayOf("/"," ")).filter { it.isNotEmpty() }.forEach { | |
println(" $it ") | |
} | |
} | |
println("why>>> " + path.split("/")[1] + path.split("/")[0]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment