From 1a55cc806a52459483bb6a1cb6f9119fed753a6e Mon Sep 17 00:00:00 2001 From: Elijah Tamarchenko Date: Mon, 11 Nov 2024 11:06:42 -0500 Subject: [PATCH] Fix lookup tables --- CHANGELOG.md | 1 + cls/SourceControl/Git/Utils.cls | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 273355c7..40ccd466 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed improper encoding of unicode characters in commit messages (#627) - Creating a new branch now reports the error if uncommitted changes conflict (#624) - Fix Configure erroring out if git isn't found (#632) +- Fix "%" replacing characters in lookup table names (#588) ## [2.7.0] - 2024-11-04 diff --git a/cls/SourceControl/Git/Utils.cls b/cls/SourceControl/Git/Utils.cls index ed1c01e1..fbad8d9b 100644 --- a/cls/SourceControl/Git/Utils.cls +++ b/cls/SourceControl/Git/Utils.cls @@ -2504,7 +2504,9 @@ ClassMethod NameToInternalName(Name, IgnorePercent = 1, IgnoreNonexistent = 1, V if (InternalName="") { //take our best guess based on the document extension mapped to that subdirectory set nam=$piece(nam,".",1,*-1) - set nam=$replace(nam, ..PercentClassReplace(), "%") + if (fileExt = "cls" || fileExt = "rtn" || fileExt = "inc") { + set nam=$replace(nam, ..PercentClassReplace(), "%") + } set nam=$translate(nam,"/",".") set InternalName=nam_"."_fileExt if (fileExt="cls") {