Skip to content

Commit

Permalink
Fix for issue #53
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Cartmel committed Jul 3, 2018
1 parent 036ecd4 commit 252dffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodel-webui-js/www/js/nodel.js
Expand Up @@ -27,11 +27,11 @@ var decpattern = /__([0-9]+)__/g;

var encodr = function(str, inc=0){
if(!inc) {
return str.replace(encpattern, function(match, char){
return str.replace(/\s/g, '').replace(encpattern, function(match, char){
return '__'+char.charCodeAt(0)+'__';
});
} else {
return str.replace(incpattern, function(match, char){
return str.replace(/\s/g, '').replace(incpattern, function(match, char){
return '__'+char.charCodeAt(0)+'__';
});
}
Expand Down

0 comments on commit 252dffd

Please sign in to comment.