mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-08-26 22:02:24 +00:00
twist parsing fixes
This commit is contained in:
parent
5609568689
commit
a9f4cbbe45
@ -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 = "";
|
||||
|
||||
}
|
||||
|
@ -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 = "";
|
||||
|
||||
}
|
||||
|
@ -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 |
@ -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!"));
|
Loading…
x
Reference in New Issue
Block a user