Skip to content

Commit 0057891

Browse files
committed
Add length check for unicode chars
Should be number of codepoints, not utf-8 length.
1 parent 47fa723 commit 0057891

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/functions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@
175175
"expression": "length('abc')",
176176
"result": 3
177177
},
178+
{
179+
"expression": "length('✓foo')",
180+
"result": 4
181+
},
178182
{
179183
"expression": "length('')",
180184
"result": 0

0 commit comments

Comments
 (0)