]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: accept '%:-' in column name for filters
authorKarel Zak <kzak@redhat.com>
Tue, 31 Oct 2023 11:47:10 +0000 (12:47 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Nov 2023 21:25:47 +0000 (22:25 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/filter-scanner.l

index 2bc299910c5dda7dfb206d03284cfb3e21e9ab5c..e3ee26f7a7a6ef88de56068502a162fe87d5a737 100644 (file)
@@ -4,7 +4,7 @@
 
 %option reentrant bison-bridge noyywrap noinput nounput
 
-id     [a-zA-Z][a-zA-Z_.0-9]*
+id     [a-zA-Z][a-zA-Z_.%:\-0-9]*
 int    [0-9]+
 blank  [ \t]
 str_qu \"[^\"\n]*\"