Skip to content

Commit

Permalink
Merge pull request #406 from mrala/fix-unicode-chars
Browse files Browse the repository at this point in the history
Remove invisible U+200E unicode character from yabai query
  • Loading branch information
Jean-Tinland authored Jul 2, 2024
2 parents 4c0e1a2 + 8163c04 commit 4c5ba7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ echo $(cat <<-EOF
"skhdMode": $skhd_mode
}
EOF
) | tr -d '\n' # removes newlines from output (handling Google Chrome JSON parse error caused by "search in page")
) | \
# removes invisible U+200E Left-To-Right Mark character
sed "s/\xe2\x80\x8e//g" | \
# removes newlines from output (handling Google Chrome JSON parse error caused by "search in page")
tr -d '\n'

0 comments on commit 4c5ba7f

Please sign in to comment.