This commit is contained in:
Jun Yang
2018-10-01 22:51:40 +08:00
parent 8a629980d9
commit 044be8253d
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ export function stringify (value) {
if (typeof value.toLiquid === 'function') {
return stringify(value.toLiquid())
}
if (isString(value)) {
return value
if (isString(value) || value instanceof RegExp || value instanceof Date) {
return value.toString()
}
const cache = []