Skip to content

Commit

Permalink
normalize entities
Browse files Browse the repository at this point in the history
  • Loading branch information
tintinweb committed Nov 5, 2019
1 parent 80c3522 commit 5feb9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ARAAPPS = {
}

function graphNormalizeEntity(e){
return e.replace(/[-\s\`\[\]]+/g, '_').trim("_");
return e.trim().replace(/[-\s\`\[\]]+/g, '_').replace(/(^_)|(_$)/g, "");
}

function nullify(n){
Expand Down

0 comments on commit 5feb9e7

Please sign in to comment.