Parse datetime string in testFilter
This commit is contained in:
1 parent
f639435a09
commit
29d6f5b9d0
2 files changed
+19
-14
No files matched your search
@@ -63,19 +63,6 @@ exports.getParamValueFromPath = (obj, path) ->
|
||||
return undefined
|
||||
|
||||
|
||||
exports.matchType = (src, dst) ->
|
||||
switch typeOf(src)
|
||||
when STRING_TYPE
|
||||
String(dst)
|
||||
when NUMBER_TYPE
|
||||
Number(dst)
|
||||
when BOOLEAN_TYPE
|
||||
v = String(dst).trim().toLowerCase()
|
||||
v == 'true' or v == 'on' or v == 'yes' or v == '1'
|
||||
else
|
||||
dst
|
||||
|
||||
|
||||
pathOverlap = (a, b, start) ->
|
||||
if a.length == b.length
|
||||
res = 3
|
||||
|
||||
Reference in new issue
Block a user