Skip to content

Commit 74773eb

Browse files
committed
fix: normalize extension case excludes CSP files
1 parent 4c6f7fd commit 74773eb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

cls/SourceControl/Git/Utils.cls

+3-7
Original file line numberDiff line numberDiff line change
@@ -1291,11 +1291,7 @@ ClassMethod NormalizeInternalName(ByRef name As %String, Output fromWebApp As %B
12911291

12921292
ClassMethod 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

13011297
ClassMethod 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

Comments
 (0)