We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9393daa commit 1a04c2bCopy full SHA for 1a04c2b
assets/js/editor/Editor.tsx
@@ -158,7 +158,7 @@ async function loadDTS(specifier: string): Promise<Lib[]> {
158
if (!filePath.startsWith('node_modules')) {
159
// Load every common typedef into the common module
160
let content = await fetchFile(`${commonSpecifier}${filePath}`);
161
- if (!content.startsWith('<!DOCTYPE html>')) {
+ if (!content.match(/<!doctype html>/i)) {
162
content = content.replace(/\* +@(.+?)\*\//gs, '*/');
163
results.push({
164
content: `declare module '@openfn/language-common' { ${content} }`,
0 commit comments