(base_path, file, version)
| 8 | ////////////////////////////////////////////////////////////////////////// |
| 9 | |
| 10 | export function getHelpUrl(base_path, file, version) { |
| 11 | let major = Math.floor(version / 10000), |
| 12 | minor = Math.floor(version / 100) - (major * 100), |
| 13 | url = '', |
| 14 | replace_string = major + '.' + minor; |
| 15 | |
| 16 | if (major >= 10) { |
| 17 | // Handle the version number format change in PG 10+ |
| 18 | replace_string = major; |
| 19 | } |
| 20 | |
| 21 | url = base_path.replace('$VERSION$', replace_string); |
| 22 | |
| 23 | if (url.substr(-1) != '/') { |
| 24 | url = url + '/'; |
| 25 | } |
| 26 | |
| 27 | return url + file; |
| 28 | } |
| 29 | |
| 30 | export function getEPASHelpUrl(version, epasURL=null) { |
| 31 | let major = Math.floor(version / 10000), |
no outgoing calls
no test coverage detected