Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jan 19, 2024
1 parent a87b362 commit 1533ce4
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions scripts/get-builtin-globals.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,6 @@ const getSpecification = async () => {
return text;
};

const getEmuClause = (specification, id) => {
const regexp = new RegExp(
[
// Line break before
'(?<=\\n)',
// Indention of the opening tag
'(?<indention>\\s*)',
// Opening tag
`<emu-clause id='${id.replaceAll('-', '\\-')}'.*?>`,
'\n',
'(?<text>.*?)',
'\n',
// Indention of the closing tag
'\\k<indention>',
// Closing tag
'</emu-clause>',
// Line break after
'(?=\n)',
].join(''),
's'
);

const { text } = specification.match(regexp).groups;

return text;
};

function* getGlobalObjects(specification) {
const $ = cheerio.load(specification);
for (const element of $(
Expand Down

0 comments on commit 1533ce4

Please sign in to comment.