404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.19.218.250: ~ $
/**
 * Module dependencies.
 */

var assert = require('assert');
var shExpMatch = require('../shExpMatch');

describe('shExpMatch(str, shexp)', function () {

  var tests = [
    ["http://home.netscape.com/people/ari/index.html", "*/ari/*", true],
    ["http://home.netscape.com/people/montulli/index.html", "*/ari/*", false],
    ["http://home.example.com/people/index.html", ".*/people/.*", true],
    ["http://home.example.com/people/yourpage/index.html", ".*/mypage/.*", false],
    ["www.hotmail.com", "*hotmail.com*", true],
    ["phishing-scam.com?email=someone@hotmail.com", "*hotmail.com*", true],
    ["abcdomain.com", "(*.abcdomain.com|abcdomain.com)", true],
    ["foo.abcdomain.com", "(*.abcdomain.com|abcdomain.com)", true],
    ["abddomain.com", "(*.abcdomain.com|abcdomain.com)", false],
    ["a.com", "?.com", true],
    ["b.com", "?.com", true],
    ["ab.com", "?.com", false]
  ];

  tests.forEach(function (test) {
    var expected = test.pop();
    it('should return `' + expected +'` for "' + test.join('", "') + '"', function () {
      assert.equal(expected, shExpMatch(test[0], test[1]));
    });
  });

});

Filemanager

Name Type Size Permission Actions
dnsDomainIs.js File 551 B 0644
dnsDomainLevels.js File 488 B 0644
dnsResolve.js File 898 B 0644
isInNet.js File 760 B 0644
isPlainHostName.js File 468 B 0644
isResolvable.js File 573 B 0644
localHostOrDomainIs.js File 642 B 0644
myIpAddress.js File 377 B 0644
shExpMatch.js File 1.11 KB 0644
test.js File 7.83 KB 0644
timeRange.js File 1.61 KB 0644
weekdayRange.js File 1.16 KB 0644