mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: restrict successful url launch to only http/https (#5028)
This commit is contained in:
parent
75e51fdeea
commit
440253f0d9
@ -72,10 +72,6 @@ class URLCellBloc extends Bloc<URLCellEvent, URLCellState> {
|
||||
const linkPrefix = [
|
||||
'http://',
|
||||
'https://',
|
||||
'file://',
|
||||
'ftp://',
|
||||
'ftps://',
|
||||
'mailto:',
|
||||
];
|
||||
final shouldAddScheme =
|
||||
!linkPrefix.any((pattern) => content.startsWith(pattern));
|
||||
|
Loading…
Reference in New Issue
Block a user