From 0b75befe47a2c6716e791c8d6f80dc72de3a1382 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Wed, 19 Sep 2018 20:15:13 +0200 Subject: [PATCH] allow file:/// locations --- src/Widgets/Views/Editor.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Widgets/Views/Editor.vala b/src/Widgets/Views/Editor.vala index fae301c..b18d259 100644 --- a/src/Widgets/Views/Editor.vala +++ b/src/Widgets/Views/Editor.vala @@ -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); }