Skip to content

Commit 5a414ac

Browse files
authored
Merge branch 'final-blc-storage' into prop-screenshots
2 parents 941488e + dbcc3f2 commit 5a414ac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/synthetics-sdk-broken-links/src/link_utils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ export function shouldTakeScreenshot(
300300
}
301301

302302
/**
303+
303304
* Sanitizes an object name string for safe use, ensuring compliance with
304305
* naming restrictions.
305306
*
@@ -330,7 +331,7 @@ export function sanitizeObjectName(
330331
.replace(/\s+/g, '_'); // Replace one or more spaces with underscores
331332
}
332333

333-
export function getStoragePathToExecution(
334+
export function getStoragePagetStoragePathToExecutionthToExecution(
334335
storageParams: StorageParameters,
335336
options: BrokenLinksResultV1_BrokenLinkCheckerOptions
336337
) {

packages/synthetics-sdk-broken-links/test/unit/link_utils.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ describe('GCM Synthetics Broken Links Utilies', async () => {
229229

230230
describe('sanitizeObjectName', () => {
231231
it('should remove invalid characters', () => {
232-
const input = 'test/@#$%^&*()/_+-=[]{};\':"|,.<>/?\r\n\t';
233-
const expectedOutput = "test_@_$%^&_()__+-=__{};'___,.______";
232+
const input = "test/\@#$%^&*()/_+\-=[]{};':\"\|,.<>/?\r\n\t";
233+
const expectedOutput = "test_@_$%^&_()__+-=__{};'__\_,.______";
234234
expect(sanitizeObjectName(input)).to.equal(expectedOutput);
235235
});
236236

0 commit comments

Comments
 (0)