Fix ADMX generation to use underscores instead of . (#279406)

This commit is contained in:
Paul
2025-11-25 10:39:47 -08:00
committed by GitHub
parent 643ae5a998
commit 43285776cc
3 changed files with 11 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ export class StringEnumPolicy extends BasePolicy {
protected renderADMXElements(): string[] {
return [
`<enum id="${this.name}" valueName="${this.name}">`,
...this.enum_.map((value, index) => ` <item displayName="$(string.${this.name}_${this.enumDescriptions[index].nlsKey})"><value><string>${value}</string></value></item>`),
...this.enum_.map((value, index) => ` <item displayName="$(string.${this.name}_${this.enumDescriptions[index].nlsKey.replace(/\./g, '_')})"><value><string>${value}</string></value></item>`),
`</enum>`
];
}