allow file:/// locations

This commit is contained in:
Artem Anufrij 2018-09-19 20:15:13 +02:00
parent c58571d3c1
commit 0b75befe47

View file

@ -74,7 +74,7 @@ namespace Webpin.Widgets.Views {
this.margin = 15;
try {
this.protocol_regex = new Regex ("https?://[\\w+\\d+]((:\\d+)?/\\S*)?");
this.protocol_regex = new Regex ("(https?://|file:///)[\\w\\d]");
} catch (RegexError e) {
critical ("%s", e.message);
}