Skip to content

Commit

Permalink
chore: restrict successful url launch to only http/https (#5028)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardshiue authored Apr 1, 2024
1 parent 75e51fd commit 440253f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 440253f

Please sign in to comment.