@@ -1291,11 +1291,7 @@ ClassMethod NormalizeInternalName(ByRef name As %String, Output fromWebApp As %B
12911291
12921292ClassMethod NormalizeExtension (name As %String ) As %String
12931293{
1294- #dim extension = $piece (name , " ." , $length (name , " ." ))
1295- if $length (extension ) <= 3 {
1296- set $piece (name , " ." , $length (name , " ." )) = $zconvert (extension , " U" )
1297- }
1298- quit name
1294+ return ##class (%Studio.SourceControl.Interface ).normalizeName (name )
12991295}
13001296
13011297ClassMethod RoutineTSH (InternalName As %String ) As %String
@@ -2401,8 +2397,8 @@ ClassMethod Name(InternalName As %String, ByRef MappingExists As %Boolean) As %S
24012397
24022398 if InternalName [" /" {
24032399 // If no specific mapping was specified (p=""), then return the whole csp filename; otherwise return the name without the mapped piece
2404- set InternalName =$extract (InternalName ,$length (p )+2 ,*)
2405- quit $translate (found _$translate (InternalName ," %" ," _" )," \" ," /" )
2400+ set relativeInternalName =$extract (InternalName ,$length (p )+2 ,*)
2401+ quit $translate (found _$translate (relativeInternalName ," %" ," _" )," \" ," /" )
24062402 } elseif (..Type (InternalName ) = " ptd" ) {
24072403 do ##class (SourceControl.Git.Production ).ParseInternalName (InternalName ,'default ,.filename )
24082404 return $translate (found _filename , " \" ," /" )
0 commit comments