We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d30aa2 commit 074740dCopy full SHA for 074740d
js/cypher.datatable.js
@@ -64,7 +64,10 @@ function convertCell(cell) {
64
return props(cell);
65
}
66
if (typeof cell === 'string') {
67
- if (cell.match(/https?:/)) return '<a href="'+cell+'" target="_blank">'+cell+'</a>';
+ if (cell.match(/^https?:/)) {
68
+ if (cell.match(/(jpg|png|gif)$/i)) return '<img style="display:inline;max-height:100%" src="'+cell+'">';
69
+ return '<a href="'+cell+'" target="_blank">'+cell+'</a>';
70
+ };
71
72
return cell;
73
0 commit comments