mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
add stripMedia()
This commit is contained in:
parent
ec263d0d63
commit
863d3d8319
1 changed files with 5 additions and 0 deletions
|
@ -119,6 +119,11 @@ def mediaRefs(string):
|
|||
l.append((full, fname, repl))
|
||||
return l
|
||||
|
||||
def stripMedia(txt):
|
||||
for (reg, x) in regexps:
|
||||
txt = re.sub(reg, "", txt)
|
||||
return txt
|
||||
|
||||
# Rebuilding DB
|
||||
##########################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue