fix: normalize parameter string by removing line-continuation backslashes
This commit is contained in:
@@ -283,8 +283,10 @@ export const parseParamsString = (paramsString: string): string[] => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Convert multiline to single line, replace newlines with spaces
|
// Convert multiline to single line, replace newlines with spaces
|
||||||
|
// Remove line-continuation backslashes (surrounded by spaces or at end of line)
|
||||||
const normalizedString = paramsString
|
const normalizedString = paramsString
|
||||||
.replace(/\n/g, ' ')
|
.replace(/\n/g, ' ')
|
||||||
|
.replace(/\s\\\s/g, ' ')
|
||||||
.replace(/\s+/g, ' ')
|
.replace(/\s+/g, ' ')
|
||||||
.trim();
|
.trim();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user