(comp, options)
| 262 | // already replaced the hyphen ranges |
| 263 | // turn into a set of JUST comparators. |
| 264 | const parseComparator = (comp, options) => { |
| 265 | comp = comp.replace(re[t.BUILD], '') |
| 266 | debug('comp', comp, options) |
| 267 | comp = replaceCarets(comp, options) |
| 268 | debug('caret', comp) |
| 269 | comp = replaceTildes(comp, options) |
| 270 | debug('tildes', comp) |
| 271 | comp = replaceXRanges(comp, options) |
| 272 | debug('xrange', comp) |
| 273 | comp = replaceStars(comp, options) |
| 274 | debug('stars', comp) |
| 275 | return comp |
| 276 | } |
| 277 | |
| 278 | const isX = id => !id || id.toLowerCase() === 'x' || id === '*' |
| 279 |
no test coverage detected