diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-08 10:16:29 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-08 10:16:29 -0700 |
commit | b891482bcec5095233ad043dfd99a91bf518d74c (patch) | |
tree | e12a78aa08497a497ba4e666ff714e6719e4be7b /web | |
parent | 4acff76bdd64d6a47863b46a8fd367fc6692b6c8 (diff) | |
download | chat-b891482bcec5095233ad043dfd99a91bf518d74c.tar.gz chat-b891482bcec5095233ad043dfd99a91bf518d74c.tar.bz2 chat-b891482bcec5095233ad043dfd99a91bf518d74c.zip |
Add ALL the semicolons
Diffstat (limited to 'web')
-rw-r--r-- | web/react/utils/utils.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index ce803c2fb..36fb200e6 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -235,7 +235,7 @@ module.exports.extractLinks = function(text) { var links = [] for (var i = 0; i < matches.length; i++) { - links.push(matches[i].link) + links.push(matches[i].link); } return { "links": links, "text": text }; @@ -450,9 +450,9 @@ module.exports.textToJsx = function(text, options) { inner.push(<span key={name+i+z+"_span"}>{prefix}<a className={mClass + highlightSearchClass + " mention-link"} key={name+i+z+"_link"} href="#" onClick={function(value) { return function() { module.exports.searchForTerm(value); } }(name)}>@{name}</a>{suffix} </span>); } else if (testUrlMatch(word).length) { var match = testUrlMatch(word)[0]; - var link = match.link + var link = match.link; - var prefix = word.substring(0,word.indexOf(match.text)) + var prefix = word.substring(0,word.indexOf(match.text)); var suffix = word.substring(word.indexOf(match.text)+match.text.length); inner.push(<span key={word+i+z+"_span"}>{prefix}<a key={word+i+z+"_link"} className={"theme" + highlightSearchClass} target="_blank" href={link}>{match.text}</a>{suffix} </span>); |