Skip to content

Commit

Permalink
Improve checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Dec 12, 2024
1 parent ed58401 commit 7535dfc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ fun String.resolveDefaultDescription(): String =

fun String.isNotesFeedSpec() = this.contains("\"kind\":\"notes\"") || this.contains("kind:1")

fun String.isImageSpec() = this.contains("filter:image")
fun String.isImageSpec() = this.contains("\"query\":\"filter:image")

fun String.isVideoSpec() = this.contains("filter:video")
fun String.isVideoSpec() = this.contains("\"query\":\"filter:video")

fun String.isAudioSpec() = this.contains("filter:audio")
fun String.isAudioSpec() = this.contains("\"query\":\"filter:audio")

fun String.isReadsFeedSpec() = this.contains("\"kind\":\"reads\"") || this.contains("kind:30023")

Expand Down

0 comments on commit 7535dfc

Please sign in to comment.