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 ISO_DATE_FORMAT = "YYYY-MM-DDTHH:mm:ss.sssZ";
|
||||||
|
|
||||||
export const JAVASCRIPT_KEYWORDS = {
|
export const JAVASCRIPT_KEYWORDS = {
|
||||||
true: "true",
|
Array: "Array",
|
||||||
await: "await",
|
await: "await",
|
||||||
|
Boolean: "Boolean",
|
||||||
break: "break",
|
break: "break",
|
||||||
case: "case",
|
case: "case",
|
||||||
catch: "catch",
|
catch: "catch",
|
||||||
class: "class",
|
class: "class",
|
||||||
const: "const",
|
const: "const",
|
||||||
continue: "continue",
|
continue: "continue",
|
||||||
|
Date: "Date",
|
||||||
debugger: "debugger",
|
debugger: "debugger",
|
||||||
default: "default",
|
default: "default",
|
||||||
delete: "delete",
|
delete: "delete",
|
||||||
do: "do",
|
do: "do",
|
||||||
else: "else",
|
else: "else",
|
||||||
enum: "enum",
|
enum: "enum",
|
||||||
|
eval: "eval",
|
||||||
export: "export",
|
export: "export",
|
||||||
extends: "extends",
|
extends: "extends",
|
||||||
false: "false",
|
false: "false",
|
||||||
finally: "finally",
|
finally: "finally",
|
||||||
for: "for",
|
for: "for",
|
||||||
function: "function",
|
function: "function",
|
||||||
|
Function: "Function",
|
||||||
|
hasOwnProperty: "hasOwnProperty",
|
||||||
if: "if",
|
if: "if",
|
||||||
implements: "implements",
|
implements: "implements",
|
||||||
import: "import",
|
import: "import",
|
||||||
in: "in",
|
in: "in",
|
||||||
|
Infinity: "Infinity",
|
||||||
instanceof: "instanceof",
|
instanceof: "instanceof",
|
||||||
interface: "interface",
|
interface: "interface",
|
||||||
|
isFinite: "isFinite",
|
||||||
|
isNaN: "isNaN",
|
||||||
|
isPrototypeOf: "isPrototypeOf",
|
||||||
|
JSON: "JSON",
|
||||||
|
length: "length",
|
||||||
let: "let",
|
let: "let",
|
||||||
|
Math: "Math",
|
||||||
|
name: "name",
|
||||||
|
NaN: "NaN",
|
||||||
new: "new",
|
new: "new",
|
||||||
null: "null",
|
null: "null",
|
||||||
|
Number: "Number",
|
||||||
|
Object: "Object",
|
||||||
package: "package",
|
package: "package",
|
||||||
private: "private",
|
private: "private",
|
||||||
protected: "protected",
|
protected: "protected",
|
||||||
public: "public",
|
public: "public",
|
||||||
return: "return",
|
return: "return",
|
||||||
static: "static",
|
static: "static",
|
||||||
|
String: "String",
|
||||||
super: "super",
|
super: "super",
|
||||||
switch: "switch",
|
switch: "switch",
|
||||||
this: "this",
|
this: "this",
|
||||||
throw: "throw",
|
throw: "throw",
|
||||||
|
toString: "toString",
|
||||||
|
true: "true",
|
||||||
try: "try",
|
try: "try",
|
||||||
typeof: "typeof",
|
typeof: "typeof",
|
||||||
|
undefined: "undefined",
|
||||||
|
valueOf: "valueOf",
|
||||||
var: "var",
|
var: "var",
|
||||||
void: "void",
|
void: "void",
|
||||||
while: "while",
|
while: "while",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user