]> git.seodisparate.com - swaybar_info/commitdiff
Update README.md
authorStephen Seo <seo.disparate@gmail.com>
Tue, 23 Aug 2022 08:11:01 +0000 (17:11 +0900)
committerGitHub <noreply@github.com>
Tue, 23 Aug 2022 08:11:01 +0000 (17:11 +0900)
README.md

index dc91e1b27e94123284025ca4e12d90dae3ff51e2..f946bc08dbdcc1bc90a7048fe1b1b1757c4a3094 100644 (file)
--- a/README.md
+++ b/README.md
@@ -80,7 +80,8 @@ That sometimes becomes:
 Then this text can be parsed with a regex like:
 
     status_command $HOME/.config/sway/swaybar_info \
-    '--regex-cmd=$HOME/scripts/mpc/mpcCommand.sh[SPLIT]simple[SPLIT]^\(.\*?\)\(?:COLORSPLIT\)?\([A-F0-9]{6}\)?$'
+    '--regex-cmd=$HOME/scripts/mpc/mpcCommand.sh[SPLIT]simple[SPLIT]^\(.\*?\)\(?:\(?:COLORSPLIT\)\([A-F0-9]{6}\)\)?$'
+
 
 Note that some characters like `*` or `(` had to be escaped because they are
 being passed verbatim to a shell.