We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60adea5 commit 9d77bf0Copy full SHA for 9d77bf0
ext/fileinfo/libmagic/softmagic.c
@@ -421,7 +421,7 @@ check_fmt(struct magic_set *ms, struct magic *m)
421
return 0;
422
423
(void)setlocale(LC_CTYPE, "C");
424
- pattern = zend_string_init("~%[-0-9.]*s~", sizeof("~%[-0-9.]*s~") - 1, 0);
+ pattern = zend_string_init("~%[-0-9\\.]*s~", sizeof("~%[-0-9\\.]*s~") - 1, 0);
425
if ((pce = pcre_get_compiled_regex(pattern, &re_extra, &re_options)) == NULL) {
426
rv = -1;
427
} else {
0 commit comments