getJasmineRequireObj().toMatch = function() { function toMatch() { return { compare: function(actual, expected) { var regexp = new RegExp(expected); return { pass: regexp.test(actual) }; } }; } return toMatch; };