fixed location and a names bug
This commit is contained in:
parent
da2d8cfcd5
commit
47fb023fdd
4 changed files with 11 additions and 7 deletions
|
@ -189,7 +189,7 @@ function(APICalls, HostApp) {
|
|||
}
|
||||
|
||||
NewPost.prototype.replaceAll = function(txt, replace, with_this) {
|
||||
return txt.replace(new RegExp(replace, 'g'),with_this);
|
||||
return txt.replace(new RegExp(replace, 'g'), with_this);
|
||||
}
|
||||
|
||||
NewPost.prototype.replaceWithName = function(txt, with_item) {
|
||||
|
@ -228,7 +228,7 @@ function(APICalls, HostApp) {
|
|||
// parse the text:
|
||||
// replace all the line braks by <br/>, and all the double spaces by the html version
|
||||
text = this.replaceAll(text,'\n','<br/>');
|
||||
text = this.replaceAll(text,' ',' ');
|
||||
//text = this.replaceAll(text,' ',' ');
|
||||
|
||||
// replace the words by a highlighted version of the words
|
||||
|
||||
|
|
Reference in a new issue