Skip to content

Commit 109797e

Browse files
somanshreddyclaude
andcommitted
docs(parsers): refresh hasUnresolvedTemplatingToken aside for the shared predicate
The parenthetical said the __UPPER__ shape keeps its own inline check at each call site; this branch folded it into isUnresolvedAssetPlaceholder, so point there instead. Addresses review nit. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent 491b8d9 commit 109797e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/parsers/src/assetResolution.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export function isRemoteOrInlineUrl(url: string): boolean {
1919
* substitutes before render. The static linter runs before that substitution,
2020
* so it cannot resolve such a value to a file on disk and must not report it as
2121
* a missing asset. Check the RAW url, before any `cleanAssetUrl()` step: that
22-
* splits on `?`/`#`, which also chops inside a `${...}` expression. (The older
23-
* `__UPPER__` placeholder shape predates this and keeps its own inline check at
24-
* each call site.)
22+
* splits on `?`/`#`, which also chops inside a `${...}` expression. (The `__UPPER__`
23+
* placeholder shape is combined with this in `isUnresolvedAssetPlaceholder` below, the
24+
* shared predicate asset-src sites skip on.)
2525
*/
2626
export function hasUnresolvedTemplatingToken(url: string): boolean {
2727
return /<<[^<>]+>>|\{\{[^{}]+\}\}|\$\{[^{}]+\}/.test(url);

0 commit comments

Comments
 (0)