Merge branch 'master' into spread_routes

This commit is contained in:
Rich Harris
2019-04-27 13:09:54 -04:00
committed by GitHub
8 changed files with 27 additions and 7 deletions

View File

@@ -212,6 +212,6 @@ async function _export({
}
function get_href(attrs: string) {
const match = /href\s*=\s*(?:"(.*?)"|'(.+?)'|([^\s>]+))/.exec(attrs);
return match[1] || match[2] || match[3];
const match = /href\s*=\s*(?:"(.*?)"|'(.*?)'|([^\s>]*))/.exec(attrs);
return match && (match[1] || match[2] || match[3]);
}