Skip to content

Commit

Permalink
Fixed bugs and regression. EOL characters were not actually being add…
Browse files Browse the repository at this point in the history
…ed to user input properly. Now that they are I needed to fix some regex that does the chained command detection.
  • Loading branch information
dotb committed Jan 31, 2023
1 parent 1b30640 commit a326437
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/pakcatt/util/StringUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class StringUtils {
* For example, board.open.1 list 2
*/
fun stringIsInDottedNotation(string: String): Boolean {
return string.matches("^\\w+(\\.\\w+)+".toRegex())
return string.matches("^\\w+(\\.\\w+)+\\s*".toRegex())
}

}
15 changes: 15 additions & 0 deletions src/test/kotlin/pakcatt/dependencies/Configuration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,19 @@ class Configuration {
return 10
}

@Bean
fun tcpInteractiveEnabled(): Boolean {
return true
}

@Bean
fun tcpInteractivePort(): Int {
return 1234
}

@Bean
fun preWelcomeMessage(): String {
return "Welcome be good and give me your callsign. K tnx."
}

}

0 comments on commit a326437

Please sign in to comment.