client/js/tweetsource.js
changeset 13 e42d9f11f6e2
parent 10 dd7d86fbee70
child 32 1e47b1f9f42d
equal deleted inserted replaced
10:dd7d86fbee70 13:e42d9f11f6e2
     3  * Licence: CeCILL-B - http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.html
     3  * Licence: CeCILL-B - http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.html
     4  * 
     4  * 
     5  * */
     5  * */
     6 
     6 
     7 function regexpFromText(_text) {
     7 function regexpFromText(_text) {
     8     return new RegExp(_text.replace(/\W/gim,'\\$1'),'gim');
     8     return new RegExp('(' + _text.replace(/\W/gim,'\\$1') + ')','gim');
     9 }
     9 }
    10 
    10 
    11 Btv_TweetArray = function() {
    11 Btv_TweetArray = function() {
    12     this.tweets = [];
    12     this.tweets = [];
    13     this.idIndex = [];
    13     this.idIndex = [];