fix: add keywords to the validation list (#10690)
This commit is contained in:
parent
170c263f9c
commit
a39176dc38
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user