mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-14 05:15:55 +08:00
add
This commit is contained in:
parent
d5cad89865
commit
2b35ec7028
@ -32302,7 +32302,7 @@ function FormatMember(path) {
|
||||
return;
|
||||
if(curNode.computed === undefined || !curNode.computed === true)
|
||||
return;
|
||||
if (!/[a-zA-Z_$][0-9a-zA-Z_$]*/.test(curNode.property.value))
|
||||
if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(curNode.property.value))
|
||||
return;
|
||||
curNode.property = t.identifier(curNode.property.value);
|
||||
curNode.computed = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user