web/res/js/live-polemic.js
changeset 866 f239ebb11236
parent 849 973a136cfbd0
child 875 4f522412c3f6
--- a/web/res/js/live-polemic.js	Wed Apr 17 18:17:49 2013 +0200
+++ b/web/res/js/live-polemic.js	Thu Apr 18 18:00:43 2013 +0200
@@ -229,8 +229,7 @@
         for (var _i = 0; _i < _hashes.length; _i++) {
             var _m = _hashes[_i],
                 _h = ( _m[0] == '#' ? _m : _m.substr(1) ),
-                _f = _h.replace(/(\W)/g,'\\$1'),
-                _start = _lastpos + tweet.text.substr(_lastpos).search(_f),
+                _start = _lastpos + tweet.text.substr(_lastpos).search(_h),
                 _lastpos = _start + _h.length;
             tweet.entities.push({
                 "text" : _h,
@@ -378,9 +377,6 @@
 }
 
 function trimFDS() {
-	if (!slices || !slices.length) {
-		return [];
-	}
     var slices = flattenDateStruct(twCx.timeline, twCx.timeLevel);
     while (slices[0].tweets.length == 0) {
         slices.splice(0,1);