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

View File

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