fix: preserve inline directive spacing tests (thanks @joshp123) (#539)
This commit is contained in:
@@ -271,8 +271,9 @@ export function extractQueueDirective(body?: string): {
|
||||
const argsStart = start + "/queue".length;
|
||||
const args = body.slice(argsStart);
|
||||
const parsed = parseQueueDirectiveArgs(args);
|
||||
const cleanedRaw =
|
||||
body.slice(0, start) + " " + body.slice(argsStart + parsed.consumed);
|
||||
const cleanedRaw = `${body.slice(0, start)} ${body.slice(
|
||||
argsStart + parsed.consumed,
|
||||
)}`;
|
||||
const cleaned = cleanedRaw.replace(/\s+/g, " ").trim();
|
||||
return {
|
||||
cleaned,
|
||||
|
||||
Reference in New Issue
Block a user