Skip to content

Commit

Permalink
markFeatureWriter: Fix test failures
Browse files Browse the repository at this point in the history
Check `key` is not empty before accessing first character.
  • Loading branch information
khaledhosny committed Sep 4, 2024
1 parent baac9d9 commit 6466a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/ufo2ft/featureWriters/markFeatureWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def parseAnchorName(
else:
isMark = False

isIgnorable = not key[0].isalpha()
isIgnorable = key and not key[0].isalpha()

return isMark, key, number, isContextual, isIgnorable

Expand Down

0 comments on commit 6466a34

Please sign in to comment.