Skip to content

Commit

Permalink
fix: validate vocab link paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschuck committed Nov 4, 2024
1 parent 5d8b210 commit 6efa252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate-vocab-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function checkSchemaLinks(jsonLdSchemaPath) {

const vocabPath = jsonLdSchemaPath.replace(`v1.jsonld`, 'vocabulary.md');
const v1SchemaContent = fs.readFileSync(vocabPath, 'utf8');
const jsonLdV1Links = (jsonLdTextContent.match(/https\:\/\/oid.spherity.com.*#.*(?=")/g) || [])
const jsonLdV1Links = (jsonLdTextContent.match(/https\:\/\/dpp-vocabulary.spherity.com.*#.*(?=")/g) || [])

const missingLinks = jsonLdV1Links.filter((link) => {
const slug = link.split('#')[1];
Expand Down

0 comments on commit 6efa252

Please sign in to comment.