Improving tiddler testing for image type.
This commit is contained in:
parent
fbfb5fbf7d
commit
cdd8607532
@ -308,7 +308,8 @@ Tiddler >> installTiddlerExporter [
|
|||||||
{ #category : #testing }
|
{ #category : #testing }
|
||||||
Tiddler >> isImage [
|
Tiddler >> isImage [
|
||||||
|
|
||||||
^ self type = 'image/'
|
^ self type ifNil: [ ^ false ];
|
||||||
|
beginsWith: 'image/'
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #testing }
|
{ #category : #testing }
|
||||||
|
Loading…
Reference in New Issue
Block a user