on master help sign in
metaphone: bad indexing
e981eb0Hunter Miller
desk/desk.docket-0+1−1
@@ -4,7 +4,7 @@
4 image+'https://nyc3.digitaloceanspaces.com/hmillerdev/nocsyx-lassul/2022.7.16..04.35.22-sphinx-web-shifted.svg'
4 image+'https://nyc3.digitaloceanspaces.com/hmillerdev/nocsyx-lassul/2022.7.16..04.35.22-sphinx-web-shifted.svg'
5 glob-http+['https://nyc3.digitaloceanspaces.com/hmillerdev/sphinx/glob-0v7.folii.k685s.mjn1b.46up6.but26.glob' 0v7.folii.k685s.mjn1b.46up6.but26]
5 glob-http+['https://nyc3.digitaloceanspaces.com/hmillerdev/sphinx/glob-0v7.folii.k685s.mjn1b.46up6.but26.glob' 0v7.folii.k685s.mjn1b.46up6.but26]
6 base+'sphinx'
6 base+'sphinx'
7− version+[0 4 4]
7+ version+[0 4 5]
8 website+'https://github.com'
8 website+'https://github.com'
9 license+'MIT'
9 license+'MIT'
10==
10==
desk/lib/metaphone.hoon+1
@@ -155,6 +155,7 @@
155 ?: forward
155 ?: forward
156 ?: (gth (add index offset) (dec (lent text))) ''
156 ?: (gth (add index offset) (dec (lent text))) ''
157 (snag (add index offset) text)
157 (snag (add index offset) text)
158+ ?: (lth index offset) ''
158 ?: (lth (sub index offset) 0) ''
159 ?: (lth (sub index offset) 0) ''
159 (snag (sub index offset) text)
160 (snag (sub index offset) text)
160 --
161 --