Skip to content
Snippets Groups Projects
Unverified Commit 02b07c1b authored by syuilo's avatar syuilo
Browse files

Update note-mixin.ts

parent 5e54751b
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,7 @@ export default (opts: Opts = {}) => ({
urls(): string[] {
if (this.appearNote.text) {
const ast = parse(this.appearNote.text);
// TODO: 再帰的にURL要素がないか調べる
return unique(ast
.filter(t => ((t.name == 'url' || t.name == 'link') && t.props.url && !t.silent))
.map(t => t.props.url));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment