(version)
| 3 | 'use strict'; |
| 4 | |
| 5 | function createUrlForVersion(version) { |
| 6 | const url = window.location.pathname; |
| 7 | const versionRegex = /(\d+)(.\d+)/; |
| 8 | |
| 9 | if (url.match(versionRegex)) { |
| 10 | return url.replace(/(\d+)(.\d+)/, `${version}`); |
| 11 | } |
| 12 | return url.replace(/react-native-paper\//, `react-native-paper/${version}/`); |
| 13 | } |
| 14 | |
| 15 | function appendVersionBanner() { |
| 16 | const html = ` |
no test coverage detected
searching dependent graphs…