Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Bugfix/number searching #569

Merged
merged 2 commits into from
Mar 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class PlayCommand(private val playerLimiter: PlayerLimiter, private val trackSea
return
}

if (TextUtils.isSplitSelect(context.rawArgs)) {
if (TextUtils.isSplitSelect(context.rawArgs) && videoSelectionCache[context.member] != null) {
SelectCommand.select(context, videoSelectionCache)
return
}
Expand Down
2 changes: 1 addition & 1 deletion FredBoat/src/main/java/fredboat/util/TextUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class TextUtils {
.precomputed();

public static final CharMatcher SPLIT_SELECT_ALLOWED =
SPLIT_SELECT_SEPARATOR.or(CharMatcher.inRange('0', '9'))
SPLIT_SELECT_SEPARATOR.or(CharMatcher.inRange('1', '5'))
.precomputed();

public static final Splitter COMMA_OR_WHITESPACE = Splitter.on(SPLIT_SELECT_SEPARATOR)
Expand Down