(function ()()

in lib/is.js [6:31]


(function () {
    var handle = '\\w{1,15}';
    def({
        fn: 'twitter.handle',
        re: new RegExp('^@?' + handle + '$'),
        after: function (data, options) {
            if (options.at == null) {
                return true;
            }

            return options.at === (data[0] === '@');
        }
    });
    def({
        fn: 'twitter.profile',
        re: url('(mobile\\.)?twitter\\.com\\/' + handle),
        after: function(data) {
          // avoid special twitter urls that aren't profiles
          if(data.endsWith('/search')) {
            return false;
          }

          return true;
        }
    });
})();