Skip to content

Commit

Permalink
Commons: handle Unicode ZERO WIDTH NON-JOINER correctly, fix #486
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Feb 24, 2023
1 parent d97d05f commit 4b4f024
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/Commons.awk
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ function escapeChar(char) {
return ">" # Unicode Character 'GREATER-THAN SIGN'
case "u200b":
return "" # Unicode Character 'ZERO WIDTH SPACE'
case "u200c":
return "" # Unicode Character 'ZERO WIDTH NON-JOINER'
default:
return char
}
Expand Down

0 comments on commit 4b4f024

Please sign in to comment.