Browse Source

twist parsing fixes

master
Julian Steinwachs 10 years ago
parent
commit
a9f4cbbe45
  1. 2
      build/app-bundle.js
  2. 2
      jsx/common/PostContent.js
  3. 2
      package.json
  4. BIN
      screenshots/conversation.png
  5. 4
      tests/PostContentTest.js

2
build/app-bundle.js

@ -654,7 +654,7 @@ module.exports = Post = React.createClass({displayName: "Post", @@ -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 = "";
}

2
jsx/common/PostContent.js

@ -137,7 +137,7 @@ module.exports = Post = React.createClass({ @@ -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 = "";
}

2
package.json

@ -12,7 +12,7 @@ @@ -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": {

BIN
screenshots/conversation.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 196 KiB

4
tests/PostContentTest.js

@ -1,5 +1,5 @@ @@ -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…
Cancel
Save