]> git.xolatile.top Git - public-libhl.git/commitdiff
dot is magic
authoranon <anon@anon.anon>
Mon, 28 Aug 2023 13:43:32 +0000 (15:43 +0200)
committeranon <anon@anon.anon>
Mon, 28 Aug 2023 13:44:14 +0000 (15:44 +0200)
source/regex.c

index 57543fc309894e3f54ec33a5d02915b1b11702ef..9d01efa04dd067fcb3fd88476aa6f0ac60f108da 100644 (file)
@@ -24,7 +24,7 @@ bool is_magic(const char c) {
        if (is_quantifier(c)) {
                return true;
        }
-       for (const char * s = "\\[]"; *s != '\00'; s++) {
+       for (const char * s = "\\[]."; *s != '\00'; s++) {
                if (*s == c) {
                        return true;
                }