Skip to content

Commit

Permalink
refactor: IDE-lint of SoundKt.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO authored and mikehardy committed Oct 20, 2023
1 parent 0b9800d commit 280ca2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .idea/dictionaries/davidallison.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<w>legendable</w>
<w>lexed</w>
<w>lightblue</w>
<w>lightgrey</w>
<w>lightpencolor</w>
<w>linebreaks</w>
<w>mbit</w>
Expand All @@ -78,6 +79,7 @@
<w>optin</w>
<w>overdueness</w>
<w>pcent</w>
<w>playlink</w>
<w>polytonic</w>
<w>poweredbeolingus</w>
<w>poweredglosbe</w>
Expand Down
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 strip_av_refs(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 280ca2c

Please sign in to comment.