mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Take in functions as defaults
This commit is contained in:
@@ -24,3 +24,7 @@ export function strHasQuotes(str) {
|
||||
(str[0] === str[str.length - 1] && str[0] === "`")
|
||||
);
|
||||
}
|
||||
|
||||
export function isFunction(str) {
|
||||
return /\w+\([^)]*\)$/.test(str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user