diff --git a/awx/ui/static/js/helpers/AboutAnsible.js b/awx/ui/static/js/helpers/AboutAnsible.js index a57b1bb344..d045b48c34 100644 --- a/awx/ui/static/js/helpers/AboutAnsible.js +++ b/awx/ui/static/js/helpers/AboutAnsible.js @@ -44,7 +44,7 @@ angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialo scope.removeBuildAboutDialog = scope.$on('BuildAboutDialog', function(e, data) { var spaces, i, j, paddedStr = "", - version = data.version.replace(/-\d*$/,''); + version = data.version.replace(/-.*$/,''); spaces = Math.floor((16-version.length)/2); for( i=0; i<=spaces; i++){ diff --git a/awx/ui/static/js/helpers/License.js b/awx/ui/static/js/helpers/License.js index 0860087a3b..2893da2881 100644 --- a/awx/ui/static/js/helpers/License.js +++ b/awx/ui/static/js/helpers/License.js @@ -537,7 +537,7 @@ function ($location, $rootScope, $compile, $filter, GenerateForm, Rest, Alert, G } scope.removeLicenseDataReady = scope.$on('LicenseDataReady', function(e, data) { var html, version; - version = data.version.replace(/-\d*$/,''); + version = data.version.replace(/-.*$/,''); self.setLicense(data.license_info, version); html = self.getDefaultHTML(data.license_info); self.loadDefaultScope(data.license_info, version);