From f92bd7e43d2e476658da5a51bd88ca64fc7e98fb Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Thu, 23 May 2019 02:57:24 -0700 Subject: better regex for binary plist --- fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileio.c b/fileio.c index ad4c3de..1d27e3f 100644 --- a/fileio.c +++ b/fileio.c @@ -235,7 +235,7 @@ void goto_url(void) { if(regcomp(&r_is, "\\[InternetShortcut\\].*URL=([[:print:]]+)", REG_EXTENDED | REG_ICASE)!=0 || regcomp(&r_de, "\\[[Desktop Entry\\].*URL=([[:print:]]+)", REG_EXTENDED | REG_ICASE)!=0 || regcomp(&r_wl, "xml version.*URL.*(.+)", REG_EXTENDED | REG_ICASE)!=0 || - regcomp(&r_wb, ".*bplist.*URL_.*([[:print:]]+).*", REG_EXTENDED | REG_ICASE)!=0) + regcomp(&r_wb, ".*bplist.*URL_[^[:print:]].([[:print:]]+)", REG_EXTENDED | REG_ICASE)!=0) error("Unable to compile regex."); in=fopen(wp.phys_filename, "rb"); -- cgit v1.2.3