import * as telemetryVersion from './telemetryVersion' ; private export const sanitize = ( version ) : string => { const alphaIndex = version . search ( /alpha/ ) ; if ( alphaIndex >= 0 ) { return version . substring ( 0 , alphaIndex + 5 ) ; } return version ; } ; internal export const _getApplicationId = ( ) : string => { const version = telemetryVersion [ 'default' ] ; return sanitize ( `acr/${ version }` ) ; } ;