mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-09-28 23:31:16 +12:00
made regex smaller, just in case..
This commit is contained in:
parent
50b43156da
commit
1510d23797
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export function cleanMarkup (html) {
|
|||
|
||||
// Fix links pointing to pages on fimfiction
|
||||
// Example: <a href="/user/djazz" rel="nofollow">djazz</a>
|
||||
let matchLink = /(<a .?href=")(.+?)(".+?>.+?<\/a>)/g
|
||||
let matchLink = /(<a .?href=")(.+?)(".+?>)/g
|
||||
html = html.replace(matchLink, (match, head, url, tail) => {
|
||||
if (url.substring(0, 1) !== '#' && url.substring(0, 2) !== '//' && url.substring(0, 4) !== 'http') {
|
||||
if (url.substring(0, 1) === '/') {
|
||||
|
|
Loading…
Reference in a new issue