Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/jquery.twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ var linkify = linkify || function() {};
// If no limit is set, make the limit the rpp
options.limit = options.limit ? options.limit : options.rpp;

// If there are exlusions, turn them into a regex string
// If there are exclusions, turn them into a regex string
exclusionsStr = options.exclusions ? options.exclusions.replace(" ", "|") : false;

// If there are exlusions, turn the regex string we just made into a RegExp
// If there are exclusions, turn the regex string we just made into a RegExp
exclusionsExp = exclusionsStr ? new RegExp( exclusionsStr ) : false;

// Make a new object that is a merger of the options passed in with the default $.twitter.opts object
Expand All @@ -120,6 +120,8 @@ var linkify = linkify || function() {};
callback(tweets, query, exclusionsExp);
});
};

$.twitter.expandEntities = expandEntities;

$.fn.twitter = function( options, callback ) {
// Fail gracefully if the options arg is not set
Expand Down