Skip to content

Commit c1de9b7

Browse files
committed
refactor(ds): match number replace w/ z/OS Files SDK
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
1 parent 4072a28 commit c1de9b7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/vsce/src/api/SshMvsApi.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,7 @@ export class SshMvsApi extends SshCommonApi implements MainframeInteraction.IMvs
234234
.toUpperCase()
235235
.replace(/[^A-Z0-9@#$]/g, "");
236236

237-
// Ensure it starts with a valid character (letter or national)
238-
if (memberName.length > 0 && /^[0-9]/.test(memberName)) {
239-
memberName = "$" + memberName;
240-
}
237+
memberName = memberName.replace(/[\d]/gy, "");
241238

242239
// Truncate to 8 characters max
243240
memberName = memberName.substring(0, 8);

0 commit comments

Comments
 (0)