Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
fix: awk script now correctly takes the substring on both mingw and u…
Browse files Browse the repository at this point in the history
…buntu
  • Loading branch information
iceman1001 committed Jul 28, 2017
1 parent 9ca75c1 commit 02983ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/default_keys_dic2lua.awk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BEGIN {
print "local _keys = {"
}

$1 ~ /^[A-Fa-f0-9]+/ { sub(/\r/, ""); print "'"substr($1,0,12)"'," }
$1 ~ /^[A-Fa-f0-9]+/ { sub(/\r/, ""); print " '"substr($1,1,12)"'," }

END {
print "}"
Expand Down

0 comments on commit 02983ae

Please sign in to comment.