Improved links sanization.
This commit is contained in:
parent
c83cb4d5ba
commit
e4de82aaa6
@ -978,7 +978,7 @@ GrafoscopioNode >> root [
|
|||||||
{ #category : #operation }
|
{ #category : #operation }
|
||||||
GrafoscopioNode >> sanitizeDefaultLink [
|
GrafoscopioNode >> sanitizeDefaultLink [
|
||||||
| defaultLink sanitized protocol |
|
| defaultLink sanitized protocol |
|
||||||
defaultLink := self links last.
|
defaultLink := self lastLink.
|
||||||
protocol := 'docutopia://'.
|
protocol := 'docutopia://'.
|
||||||
(defaultLink beginsWith: protocol )
|
(defaultLink beginsWith: protocol )
|
||||||
ifTrue: [ sanitized := defaultLink copyReplaceAll: protocol with: 'https://docutopia.tupale.co/' ].
|
ifTrue: [ sanitized := defaultLink copyReplaceAll: protocol with: 'https://docutopia.tupale.co/' ].
|
||||||
|
Loading…
Reference in New Issue
Block a user