mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 16:28:46 +00:00
chore: clear frontend lint warnings
This commit is contained in:
@@ -94,5 +94,5 @@ function isBooleanType(dataType: string): boolean {
|
||||
|
||||
function isNumericLiteral(text: string): boolean {
|
||||
if (!text || text.trim() !== text) return false;
|
||||
return Number.isFinite(Number(text)) && /^[+\-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+\-]?\d+)?$/.test(text);
|
||||
return Number.isFinite(Number(text)) && /^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/.test(text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user