(expected)
| 2553 | |
| 2554 | getJasmineRequireObj().StringMatching = function(j$) { |
| 2555 | function StringMatching(expected) { |
| 2556 | if (!j$.isString_(expected) && !j$.isA_('RegExp', expected)) { |
| 2557 | throw new Error('Expected is not a String or a RegExp'); |
| 2558 | } |
| 2559 | |
| 2560 | this.regexp = new RegExp(expected); |
| 2561 | } |
| 2562 | |
| 2563 | StringMatching.prototype.asymmetricMatch = function(other) { |
| 2564 | return this.regexp.test(other); |
nothing calls this directly
no outgoing calls
no test coverage detected