mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-30 10:46:11 +03:00
Merge pull request #6630 from urbit/jb/insane
hoon: fixes (sane %t) for multi-byte glyphs
This commit is contained in:
commit
82aae2f9e3
@ -4239,12 +4239,11 @@
|
||||
?& ?| =(1 tef)
|
||||
=+ i=1
|
||||
|- ^- ?
|
||||
?|
|
||||
=(i tef)
|
||||
?| =(i tef)
|
||||
?& (gte (cut 3 [(add i inx) 1] b) 128)
|
||||
$(i +(i))
|
||||
== == ==
|
||||
$(inx +(inx))
|
||||
$(inx (add inx tef))
|
||||
==
|
||||
::
|
||||
++ ruth :: biblical sanity
|
||||
|
@ -143,4 +143,8 @@
|
||||
!> (scot %q 0x101.0101.0101.0101.0102)
|
||||
::
|
||||
==
|
||||
::
|
||||
++ test-sane
|
||||
%- expect
|
||||
!>(((sane %t) '🤔'))
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user