Skip to content
Snippets Groups Projects
Commit 2ca37485 authored by Jahan Zinedine's avatar Jahan Zinedine
Browse files

fixed an OFF BY ONE bug

parent 9756b0b3
Branches master
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ private fun checkRules(mediaUri: Uri, files: Set<String>): Short {
while (i < lines.size) {
val start = lines[i].substring(0..4)
val end = lines[i].substring(6..10)
val weekdays = if (lines[i].substring(11..18).isNotBlank()) lines[i].substring(11..18) else "MTWTFSS"
val weekdays = if (lines[i].substring(12..18).isNotBlank()) lines[i].substring(12..18) else "MTWTFSS"
val includes = mutableListOf<String>()
val excludes = mutableListOf<String>()
i++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment