diff --git a/src/schema-extension-api.ts b/src/schema-extension-api.ts index 8fb4babf..72384cea 100644 --- a/src/schema-extension-api.ts +++ b/src/schema-extension-api.ts @@ -80,7 +80,7 @@ class SchemaExtensionAPI implements ExtensionAPI { const [first, second] = label.split(':'); if (first && second) { label = second.trim(); - label = label.replace('.', '\\.'); + label = label.replaceAll('.', '\\.'); label = `${first}:[\t ]+${label}`; } } diff --git a/tsconfig.json b/tsconfig.json index 4009371b..81102a17 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,12 @@ { "compilerOptions": { - "lib": ["es2016","WebWorker"], + "lib": ["es2022","WebWorker"], "module": "commonjs", "moduleResolution": "node", "outDir": "out", "skipLibCheck": true, "sourceMap": true, - "target": "es6" + "target": "es2022" }, "exclude": ["node_modules", "server", "src/webworker"], "include": ["src", "test"]