Update doc for ns.scp (#262)

This commit is contained in:
lucebac
2022-12-21 20:56:08 +01:00
committed by GitHub
parent 303c54c85c
commit 5a86be8714
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -817,7 +817,7 @@ export const ns: InternalAPI<NSFull> = {
if (!isValidFilePath(file)) throw helpers.makeRuntimeErrorMsg(ctx, `Invalid filename: '${file}'`);
// Invalid file type
if (!file.endsWith(".lit") && !isScriptFilename(file) && !file.endsWith("txt")) {
if (!file.endsWith(".lit") && !isScriptFilename(file) && !file.endsWith(".txt")) {
throw helpers.makeRuntimeErrorMsg(ctx, "Only works for scripts, .lit and .txt files.");
}
}