feat: support Jekyll style where, #768

This commit is contained in:
Harttle
2024-11-17 21:33:38 +08:00
committed by Jun Yang
parent 11f013bf24
commit 9107eb1b93
9 changed files with 95 additions and 4 deletions
+3
View File
@@ -8,4 +8,7 @@ export class BlankDrop extends EmptyDrop {
if (isString(value)) return /^\s*$/.test(value)
return super.equals(value)
}
static is (value: unknown) {
return value instanceof BlankDrop
}
}
+3
View File
@@ -25,4 +25,7 @@ export class EmptyDrop extends Drop implements Comparable {
public valueOf () {
return ''
}
static is (value: unknown) {
return value instanceof EmptyDrop
}
}