]> git.saurik.com Git - cydia.git/blobdiff - Cydia/MIMEAddress.mm
Use libicucore's uregex to avoid Depends: libpcre.
[cydia.git] / Cydia / MIMEAddress.mm
index 2a80ae7758d521ad1352e66976f2cc2dbc5ed081..aea37ca151ab05ec9fdefc9ce8d5f0dac0f226cf 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <WebKit/WebScriptObject.h>
 
-#include "CyteKit/PerlCompatibleRegEx.hpp"
+#include "CyteKit/RegEx.hpp"
 
 @implementation MIMEAddress
 
@@ -63,7 +63,7 @@
         const char *data = [string UTF8String];
         size_t size = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
 
-        static Pcre address_r("^\"?(.*)\"? <([^>]*)>$");
+        static RegEx address_r("\"?(.*)\"? <([^>]*)>");
 
         if (address_r(data, size)) {
             name_ = address_r[1];