Skip to content

Commit

Permalink
Only include named entities with semicolons in reverse
Browse files Browse the repository at this point in the history
see #8
  • Loading branch information
ForbesLindesay committed Jun 24, 2013
1 parent 9359b94 commit 3d1ad32
Show file tree
Hide file tree
Showing 3 changed files with 3,545 additions and 3,545 deletions.
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var reversed = {};
data.forEach(function (entity) {
entity.reference = entity.reference.substring(1); //remove the '&'
entities[entity.reference] = entity.glyph;
if (entity.glyph.length === 1) {
if (entity.glyph.length === 1 && /\;$/.test(entity.reference)) {
reversed[entity.glyph.charCodeAt(0)] = entity.reference;
}
});
Expand Down
Loading

0 comments on commit 3d1ad32

Please sign in to comment.