Skip to content

Commit 992e4fb

Browse files
committed
Fix regex
1 parent 1c2518f commit 992e4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/fileinfo/libmagic/softmagic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ check_fmt(struct magic_set *ms, const char *fmt)
431431
return 0;
432432

433433
(void)setlocale(LC_CTYPE, "C");
434-
pattern = zend_string_init("~%[-0-9.]*s~", sizeof("~%[-0-9.]*s~") - 1, 0);
434+
pattern = zend_string_init("~%[-0-9\\.]*s~", sizeof("~%[-0-9\\.]*s~") - 1, 0);
435435
if ((pce = pcre_get_compiled_regex(pattern, &capture_count, &re_options)) == NULL) {
436436
rv = -1;
437437
} else {

0 commit comments

Comments
 (0)