lib/modules/apostrophe-oembed/lib/wufoo.js
function(callback) {
        var matches = url.match(/(\w+)\.wufoo\.com\/forms\/[\w]+-[\w-]+/);
        if (!matches) {
          return setImmediate(callback);
        }
        return request(url, function(err, response, body) {
          if (err) {
            return callback(err);
          }
          var matches = body.match(/"(https?:\/\/\w+\.wufoo\.com\/forms\/\w+)\/"/);
          if (matches) {
            url = matches[1];
          }
          return callback(null);
        });
      }
function(callback) {
        var matches = url.match(/(\w+)\.wufoo\.com\/forms\/[\w]+-[\w-]+/);
        if (!matches) {
          return setImmediate(callback);
        }
        return request(url, function(err, response, body) {
          if (err) {
            return callback(err);
          }
          var matches = body.match(/"(https?:\/\/\w+\.wufoo\.com\/forms\/\w+)\/"/);
          if (matches) {
            url = matches[1];
          }
          return callback(null);
        });
      }
function ( callback ) { var matches = url . match ( / (\w+)\.wufoo\.com\/forms\/[\w]+-[\w-]+ / ) ; if ( ! matches ) { return setImmediate ( callback ) ; } return request ( url , function ( err , response , body ) { if ( err ) { return callback ( err ) ; } var matches = body . match ( / "(https?:\/\/\w+\.wufoo\.com\/forms\/\w+)\/" / ) ; if ( matches ) { url = matches [ 1 ] ; } return callback ( null ) ; } ) ; }
If they used a pretty wufoo URL, we have to fetch it and find the canonical URL in it first.
If they used a pretty wufoo URL we have to fetch it and find the canonical URL in it first .