Fixed regex for preset name matching.
This commit is contained in:
parent
24b3b8c945
commit
39323d772a
1 changed files with 1 additions and 1 deletions
2
wled
2
wled
|
@ -102,7 +102,7 @@ case "$2" in
|
||||||
# Extract number and name of every preset. Right-align numbers.
|
# Extract number and name of every preset. Right-align numbers.
|
||||||
# Drop everything else.
|
# Drop everything else.
|
||||||
sed --sandbox -n \
|
sed --sandbox -n \
|
||||||
'/^"\(1\?[0-9]\)"[[:space:]]*:.*"n"[[:space:]]*:[[:space:]]*"\([[:print:]]*\)".*$/{
|
'/^"\(1\?[0-9]\)"[[:space:]]*:.*"n"[[:space:]]*:[[:space:]]*"\([[:alnum:] _-]*\)".*$/{
|
||||||
s//\1: \2/
|
s//\1: \2/
|
||||||
s/^[0-9]:/ &/
|
s/^[0-9]:/ &/
|
||||||
p
|
p
|
||||||
|
|
Loading…
Reference in a new issue