OK, I changed it to

```javascript
if (matchRanges || ...
```

However, startingSpecial is optional so the !startingSpecial is actually catching 0 or undefined.