We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58a135d + 672d2a2 commit 3a55a1eCopy full SHA for 3a55a1e
1 file changed
packages/@glimmer/syntax/lib/v1/legacy-interop.ts
@@ -48,7 +48,8 @@ export function buildLegacyPath({ head, tail, loc }: PathExpressionParams): ASTv
48
head,
49
tail,
50
get original() {
51
- return [this.head.original, ...this.tail].join('.');
+ const head = this.head.original;
52
+ return this.tail.length === 0 ? head : `${head}.${this.tail.join('.')}`;
53
},
54
set original(value: string) {
55
let [head, ...tail] = asPresentArray(value.split('.'));
0 commit comments