allow file:/// locations
This commit is contained in:
parent
c58571d3c1
commit
0b75befe47
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ namespace Webpin.Widgets.Views {
|
||||||
this.margin = 15;
|
this.margin = 15;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.protocol_regex = new Regex ("https?://[\\w+\\d+]((:\\d+)?/\\S*)?");
|
this.protocol_regex = new Regex ("(https?://|file:///)[\\w\\d]");
|
||||||
} catch (RegexError e) {
|
} catch (RegexError e) {
|
||||||
critical ("%s", e.message);
|
critical ("%s", e.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue