summaryrefslogtreecommitdiff
path: root/magic/Magdir/xwindows
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2022-03-24 15:48:58 +0000
committerChristos Zoulas <christos@zoulas.com>2022-03-24 15:48:58 +0000
commitd17d8e9ff8ad8e95fdf66239ccdcc2133d1ce5ce (patch)
tree25a3af0313caeac5858aed093695d1a0473fa604 /magic/Magdir/xwindows
parentee7b6edd2ae8469cbeed7e8c6a93c8219676e443 (diff)
downloadfile-git-d17d8e9ff8ad8e95fdf66239ccdcc2133d1ce5ce.tar.gz
Escape regex `.' twice since one level is removed by magic parsing.
(Dirk Mueller)
Diffstat (limited to 'magic/Magdir/xwindows')
-rw-r--r--magic/Magdir/xwindows6
1 files changed, 3 insertions, 3 deletions
diff --git a/magic/Magdir/xwindows b/magic/Magdir/xwindows
index 37ed8744..d8c08c87 100644
--- a/magic/Magdir/xwindows
+++ b/magic/Magdir/xwindows
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: xwindows,v 1.12 2021/08/24 08:31:10 christos Exp $
+# $File: xwindows,v 1.13 2022/03/24 15:48:58 christos Exp $
# xwindows: file(1) magic for various X/Window system file formats.
# Compiled X Keymap
@@ -37,7 +37,7 @@
# X bitmap https://en.wikipedia.org/wiki/X_BitMap
0 search/2048 #define\040
>&0 regex [a-zA-Z0-9]+_width\040 xbm image
->>&0 regex [0-9]* (%sx
+>>&0 regex [0-9]+ (%sx
>>>&0 string \n#define\040
>>>>&0 regex [a-zA-Z0-9]+_height\040
->>>>>&0 regex [0-9]* \b%s)
+>>>>>&0 regex [0-9]+ \b%s)