mirror of https://gitlab.com/bashrc2/epicyon
Replace trailing href
parent
af10d731a2
commit
041ed5bf53
|
@ -1191,7 +1191,7 @@ def addEmbeddedAudio(content: str) -> str:
|
|||
for w in words:
|
||||
if extension not in w:
|
||||
continue
|
||||
w=w.replace('href="','')
|
||||
w=w.replace('href="','').replace('">','')
|
||||
if w.endswith('.'):
|
||||
w=w[:-1]
|
||||
if w.endswith('"'):
|
||||
|
@ -1228,7 +1228,7 @@ def addEmbeddedVideo(content: str,width=400,height=300) -> str:
|
|||
for w in words:
|
||||
if extension not in w:
|
||||
continue
|
||||
w=w.replace('href="','')
|
||||
w=w.replace('href="','').replace('">','')
|
||||
if w.endswith('.'):
|
||||
w=w[:-1]
|
||||
if w.endswith('"'):
|
||||
|
|
Loading…
Reference in New Issue