Skip to content

Commit 86fed39

Browse files
committed
fixes #276, iPhone XS udid format change
1 parent a724e10 commit 86fed39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ios_webkit_debug_proxy_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ int iwdpm_configure(iwdpm_t self, int argc, char **argv) {
260260
case 'u':
261261
{
262262
regex_t *re = malloc(sizeof(regex_t));
263-
regcomp(re, "^[a-fA-F0-9]{40}(:[0-9]+(-[0-9]+)?)?$", REG_EXTENDED);
263+
regcomp(re, "^[a-fA-F0-9-]{25,}(:[0-9]+(-[0-9]+)?)?$", REG_EXTENDED);
264264
size_t ngroups = re->re_nsub + 1;
265265
regmatch_t *groups = calloc(ngroups, sizeof(regmatch_t));
266266
bool is_match = !regexec(re, optarg, ngroups, groups, 0);

src/port_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int pc_parse(pc_t self, const char *line, size_t len,
9494
self->re = malloc(sizeof(regex_t));
9595
if (regcomp(self->re,
9696
"^[ \t]*"
97-
"(([a-f0-9]{40}|\\*|null)[ \t]*:?|:)"
97+
"(([a-fA-F0-9-]{25,}|\\*|null)[ \t]*:?|:)"
9898
"[ \t]*(-?[0-9]+)"
9999
"([ \t]*-[ \t]*([0-9]+))?"
100100
"[ \t]*$", REG_EXTENDED | REG_ICASE)) {

0 commit comments

Comments
 (0)