fix: add keywords to the validation list (#10690)

This commit is contained in:
Vicky Bansal 2022-02-02 21:05:42 +05:30 committed by GitHub
parent 170c263f9c
commit a39176dc38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,47 +34,68 @@ export type Validator = (
export const ISO_DATE_FORMAT = "YYYY-MM-DDTHH:mm:ss.sssZ";
export const JAVASCRIPT_KEYWORDS = {
true: "true",
Array: "Array",
await: "await",
Boolean: "Boolean",
break: "break",
case: "case",
catch: "catch",
class: "class",
const: "const",
continue: "continue",
Date: "Date",
debugger: "debugger",
default: "default",
delete: "delete",
do: "do",
else: "else",
enum: "enum",
eval: "eval",
export: "export",
extends: "extends",
false: "false",
finally: "finally",
for: "for",
function: "function",
Function: "Function",
hasOwnProperty: "hasOwnProperty",
if: "if",
implements: "implements",
import: "import",
in: "in",
Infinity: "Infinity",
instanceof: "instanceof",
interface: "interface",
isFinite: "isFinite",
isNaN: "isNaN",
isPrototypeOf: "isPrototypeOf",
JSON: "JSON",
length: "length",
let: "let",
Math: "Math",
name: "name",
NaN: "NaN",
new: "new",
null: "null",
Number: "Number",
Object: "Object",
package: "package",
private: "private",
protected: "protected",
public: "public",
return: "return",
static: "static",
String: "String",
super: "super",
switch: "switch",
this: "this",
throw: "throw",
toString: "toString",
true: "true",
try: "try",
typeof: "typeof",
undefined: "undefined",
valueOf: "valueOf",
var: "var",
void: "void",
while: "while",