Remove "file" from schemeSegment. This lets you add "file://*" as a site preference (before this would be corrected to "file://*/" and you had to use "file:///*" to get what you wanted).

This commit is contained in:
Stefan Sundin 2021-04-29 07:59:29 -07:00
parent aba6823eec
commit c98d7d8cf2

View file

@ -12,7 +12,7 @@ const SORT_BY_USERNAME = 'sortByUsername';
const SORT_BY_GROUP_AND_TITLE = 'sortByGroupAndTitle';
const SORT_BY_GROUP_AND_USERNAME = 'sortByGroupAndUsername';
const schemeSegment = '(\\*|http|https|ws|wss|file|ftp)';
const schemeSegment = '(\\*|http|https|ws|wss|ftp)';
const hostSegment = '(\\*|(?:\\*\\.)?(?:[^/*]+))?';
const pathSegment = '(.*)';