Skip to content

Commit 5c74fd3

Browse files
committed
fix: slugify removes * symbol
1 parent cf4fcce commit 5c74fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/compare/compare.operations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,13 @@ const createPairOperationsMap = (currGroupSlug: string, prevGroupSlug: string, c
368368

369369
for (const currentOperation of currentOperations) {
370370
// todo
371-
const normalizedOperationId = currentOperation.apiType === REST_API_TYPE ? slugify(`${removeFirstSlash(`${currentOperation.metadata.path}`)}-${currentOperation.metadata.method}`) : currentOperation.operationId
371+
const normalizedOperationId = currentOperation.apiType === REST_API_TYPE ? slugify(`${currentOperation.metadata.path}-${currentOperation.metadata.method}`, [], IGNORE_PATH_PARAM_UNIFIED_PLACEHOLDER) : currentOperation.operationId
372372
operationsMap[takeSubstringIf(!!currGroupSlug, normalizedOperationId, currGroupSlug.length)] = { current: currentOperation }
373373
}
374374

375375
for (const previousOperation of previousOperations) {
376376
// todo
377-
const normalizedOperationId = previousOperation.apiType === REST_API_TYPE ? slugify(`${removeFirstSlash(`${previousOperation.metadata.path}`)}-${previousOperation.metadata.method}`) : previousOperation.operationId
377+
const normalizedOperationId = previousOperation.apiType === REST_API_TYPE ? slugify(`${previousOperation.metadata.path}-${previousOperation.metadata.method}`, [], IGNORE_PATH_PARAM_UNIFIED_PLACEHOLDER) : previousOperation.operationId
378378
const prevOperationId = takeSubstringIf(!!prevGroupSlug, normalizedOperationId, prevGroupSlug.length)
379379
const operationsMappingElement = operationsMap[prevOperationId]
380380
if (operationsMappingElement) {

0 commit comments

Comments
 (0)