Parse datetime string in testFilter

This commit is contained in:
Zaid Abdulla committed 2017-03-22 15:35:40 -07:00
1 parent f639435a09
commit 29d6f5b9d0
2 files changed
+19 -14

No files matched your search

-13
View File
@@ -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