twist parsing fixes

This commit is contained in:
Julian Steinwachs 2015-05-31 18:47:00 +02:00
parent 5609568689
commit a9f4cbbe45
5 changed files with 5 additions and 5 deletions

View File

@ -654,7 +654,7 @@ module.exports = Post = React.createClass({displayName: "Post",
}*/
}
output.push({type:"text",raw:(msg.substr(0, index))});
output.push({type:"text",raw:msg});
msg = "";
}

View File

@ -137,7 +137,7 @@ module.exports = Post = React.createClass({
}*/
}
output.push({type:"text",raw:(msg.substr(0, index))});
output.push({type:"text",raw:msg});
msg = "";
}

View File

@ -12,7 +12,7 @@
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "jsx jsx build-buffer && node test/PosContentTest.js",
"build": "jsx jsx build-buffer && browserify build-buffer/App.js -o build/app-bundle.js"
},
"repository": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 196 KiB

View File

@ -1,5 +1,5 @@
var PostContent = require("../jsx/common/PostContent.js");
var PostContent = require("../build-buffer/common/PostContent.js");
var sut = new PostContent();
console.log(sut.parseContent("asdas julian.steinwachs@fau.de fgh"));
console.log(sut.parseContent(".@tschaul so cool, great work!"));