summaryrefslogtreecommitdiff
path: root/src/gmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmutil.c')
-rw-r--r--src/gmutil.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index a9d70fbb..2a4f4728 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -25,6 +25,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
25#include <the_Foundation/regexp.h> 25#include <the_Foundation/regexp.h>
26#include <the_Foundation/object.h> 26#include <the_Foundation/object.h>
27#include <the_Foundation/path.h> 27#include <the_Foundation/path.h>
28#include <the_Foundation/regexp.h>
29
30iRegExp *newGemtextLink_RegExp(void) {
31 return new_RegExp("=>\\s*([^\\s]+)(\\s.*)?", 0);
32}
28 33
29void init_Url(iUrl *d, const iString *text) { 34void init_Url(iUrl *d, const iString *text) {
30 /* Handle "file:" as a special case since it only has the path part. */ 35 /* Handle "file:" as a special case since it only has the path part. */
@@ -38,7 +43,7 @@ void init_Url(iUrl *d, const iString *text) {
38 static iRegExp *urlPattern_; 43 static iRegExp *urlPattern_;
39 static iRegExp *authPattern_; 44 static iRegExp *authPattern_;
40 if (!urlPattern_) { 45 if (!urlPattern_) {
41 urlPattern_ = new_RegExp("^(([^:/?#]+):)?(//([^/?#]*))?" 46 urlPattern_ = new_RegExp("^(([-.+a-z0-9]+):)?(//([^/?#]*))?"
42 "([^?#]*)(\\?([^#]*))?(#(.*))?", 47 "([^?#]*)(\\?([^#]*))?(#(.*))?",
43 caseInsensitive_RegExpOption); 48 caseInsensitive_RegExpOption);
44 authPattern_ = new_RegExp("(([^@]+)@)?(([^:\\[\\]]+)" 49 authPattern_ = new_RegExp("(([^@]+)@)?(([^:\\[\\]]+)"