Skip to content

Commit

Permalink
fix: stripAvRefs
Browse files Browse the repository at this point in the history
Always returned ""
  • Loading branch information
david-allison authored and BrayanDSO committed Nov 3, 2023
1 parent f514547 commit 555c07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/java/com/ichi2/libanki/SoundKt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ open class AvTag
val AV_REF_RE = Regex("\\[anki:(play:(.):(\\d+))]")
val AV_PLAYLINK_RE = Regex("playsound:(.):(\\d+)")

fun stripAvRefs(text: String) = AV_REF_RE.replace("", text)
fun stripAvRefs(text: String) = AV_REF_RE.replace(text, "")

fun addPlayIcons(content: String): String {
return AV_REF_RE.replace(content) { match ->
Expand Down

0 comments on commit 555c07c

Please sign in to comment.