Fix regex

This commit is contained in:
Anatol Belski 2018-11-10 12:11:02 +01:00
parent 60adea5496
commit 9d77bf0978

View File

@ -421,7 +421,7 @@ check_fmt(struct magic_set *ms, struct magic *m)
return 0;
(void)setlocale(LC_CTYPE, "C");
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);
if ((pce = pcre_get_compiled_regex(pattern, &re_extra, &re_options)) == NULL) {
rv = -1;
} else {