diff --git a/src/compiler/parse/state/fragment.ts b/src/compiler/parse/state/fragment.ts index f74e6360a3..b072ede0c9 100644 --- a/src/compiler/parse/state/fragment.ts +++ b/src/compiler/parse/state/fragment.ts @@ -1,10 +1,10 @@ -import { Parser } from "../index"; -import mustache from "./mustache"; -import tag from "./tag"; -import text from "./text"; +import { Parser } from '../index'; +import mustache from './mustache'; +import tag from './tag'; +import text from './text'; export default (parser: Parser) => [ - { match: "<", fragment: tag }, - { match: "{", fragment: mustache }, + { match: '<', fragment: tag }, + { match: '{', fragment: mustache } ].find(({ match }) => parser.match(match))?.fragment ?? text;