(regex)
| 57 | // XRegExp follows the native RegExp. Chrome 20 follows the spec and converts empty |
| 58 | // patterns to (?:), but Firefox 14.0.1, Safari 5.1.2, Opera 12, and IE 9 do not |
| 59 | function isEmpty(regex) { |
| 60 | return regex.source === '(?:)' || regex.source === ''; |
| 61 | } |
| 62 | |
| 63 | emptyTypes.forEach(function(item) { |
| 64 | expect(isEmpty(XRegExp(item))).toBe(true); |
no outgoing calls
no test coverage detected
searching dependent graphs…