From bde6c318699df4567d0e1efa70403e5db9831aad Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 11 Aug 2024 18:01:47 -0500 Subject: [PATCH] Generalizing links detection. --- repository/TiddlyWiki/Tiddler.class.st | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/repository/TiddlyWiki/Tiddler.class.st b/repository/TiddlyWiki/Tiddler.class.st index 4ba43d6..7963151 100644 --- a/repository/TiddlyWiki/Tiddler.class.st +++ b/repository/TiddlyWiki/Tiddler.class.st @@ -526,8 +526,13 @@ Tiddler >> rawAliasedLinks [ { #category : #accessing } Tiddler >> rawLinks [ - self text ifNil: [ ^ Set new ]. - ^ (WikiTextGrammar new linkSea star parse: self text) asSet + ^ self rawLinksIn: self text +] + +{ #category : #accessing } +Tiddler >> rawLinksIn: aText [ + aText ifNil: [ ^ Set new ]. + ^ (WikiTextGrammar new linkSea star parse: aText) asSet ] { #category : #accessing }