(left, right)
| 18 | } |
| 19 | |
| 20 | function _compareBootstrapPrerelease(left, right) { |
| 21 | const leftNumeric = /^\d+$/.test(left); |
| 22 | const rightNumeric = /^\d+$/.test(right); |
| 23 | if (leftNumeric && rightNumeric) return _compareBootstrapNumeric(left, right); |
| 24 | if (leftNumeric) return -1; |
| 25 | if (rightNumeric) return 1; |
| 26 | if (left < right) return -1; |
| 27 | if (left > right) return 1; |
| 28 | return 0; |
| 29 | } |
| 30 | |
| 31 | function _compareBootstrapSemver(left, right) { |
| 32 | const a = _parseBootstrapSemver(left); |
no test coverage detected