diff --git a/src/compiler/compile/nodes/shared/AbstractBlock.ts b/src/compiler/compile/nodes/shared/AbstractBlock.ts index 7df61574e518..91af3fc0f705 100644 --- a/src/compiler/compile/nodes/shared/AbstractBlock.ts +++ b/src/compiler/compile/nodes/shared/AbstractBlock.ts @@ -4,7 +4,7 @@ import Node from './Node'; import { INode } from '../interfaces'; import compiler_warnings from '../../compiler_warnings'; -const regex_non_whitespace_characters = /\S/; +const regex_non_whitespace_characters = /[^ \r\n\f\v\t]/; export default class AbstractBlock extends Node { block: Block;