Skip to content

Commit 2ee0280

Browse files
authored
Merge pull request #636 from intersystems/issue-588
Fix lookup tables
2 parents 0c7721d + e5e0ba3 commit 2ee0280

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Fixed improper encoding of unicode characters in commit messages (#627)
1212
- Creating a new branch now reports the error if uncommitted changes conflict (#624)
1313
- Fix Configure erroring out if git isn't found (#632)
14+
- Fix "%" replacing characters in lookup table names (#588)
1415

1516
## [2.7.0] - 2024-11-04
1617

cls/SourceControl/Git/Utils.cls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,7 +2504,9 @@ ClassMethod NameToInternalName(Name, IgnorePercent = 1, IgnoreNonexistent = 1, V
25042504
if (InternalName="") {
25052505
//take our best guess based on the document extension mapped to that subdirectory
25062506
set nam=$piece(nam,".",1,*-1)
2507-
set nam=$replace(nam, ..PercentClassReplace(), "%")
2507+
if ((fileExt = "cls") || (fileExt = "rtn") || (fileExt = "inc")) {
2508+
set nam=$replace(nam, ..PercentClassReplace(), "%")
2509+
}
25082510
set nam=$translate(nam,"/",".")
25092511
set InternalName=nam_"."_fileExt
25102512
if (fileExt="cls") {

0 commit comments

Comments
 (0)