Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Feb 6, 2025
1 parent 8e04164 commit 6067ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lexicon/src/validators/complex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,6 @@ const refsContainType = (refs: string[], type: string) => {
if (lexUri.endsWith('#main')) {
return refs.includes(lexUri.slice(0, -5))
} else {
return refs.includes(lexUri + '#main')
return !lexUri.includes('#') && refs.includes(`${lexUri}#main`)
}
}

0 comments on commit 6067ace

Please sign in to comment.