Skip to content

Commit

Permalink
Updated gitignore and added browserify to build-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonmowat committed Mar 30, 2017
1 parent f04868a commit ecc97a6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
lib
src/MessageInput
*.DS_Store
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
src
demo
*.DS_Store
6 changes: 6 additions & 0 deletions demo/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ var ChatBubble = function (_Component) {
} : { text: {}, chatbubble: {} }
});
}

// IPR

}, {
key: '_parse_for_styles',
value: function _parse_for_styles(message) {
Expand Down Expand Up @@ -205,6 +208,9 @@ var ChatBubble = function (_Component) {
}
return message;
}

// IPR

}, {
key: '_parse_for_links',
value: function _parse_for_links(message) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"repository": "brandonmowat/react-chat-ui",
"main": "./lib/index.js",
"scripts": {
"build-demo": "babel --presets es2015,stage-0 ./demo/index.js -o ./demo/es5.js",
"build-demo": "babel --presets es2015,stage-0 ./demo/index.js -o ./demo/es5.js && browserify demo/es5.js -o demo/bundle.js",
"compile": "babel --presets es2015,stage-0,react -d lib/ src/",
"prepublish": "npm run compile",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
2 changes: 2 additions & 0 deletions src/ChatBubble/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default class ChatBubble extends Component {
})
}

// IPR
_parse_for_styles(message) {
if (typeof(message) === "string") {
var bolded_start = message.search(/__(\w+\s?)+__/);
Expand All @@ -83,6 +84,7 @@ export default class ChatBubble extends Component {
return message
}

// IPR
_parse_for_links(message) {
var i, j, str, last;
if (message.search(/<a href=/) !== -1 && (i = message.search(/<a href=/)) && (j = message.search(/a>/))) {
Expand Down

0 comments on commit ecc97a6

Please sign in to comment.