svelte: don't eat conditional chains question marks

This commit is contained in:
Alice Gaudon 2021-05-13 14:12:40 +02:00
parent fac59e12d6
commit 26140d2028
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ export default class SvelteViewEngine extends ViewEngine {
break;
}
}
if ([' ', '\n', '<', '.', '\'', '"'].indexOf(output[endIndex]) >= 0 && struct === 0) break;
if ([' ', '\n', '<', '.', '\'', '"', '?'].indexOf(output[endIndex]) >= 0 && struct === 0) break;
endIndex++;
}