on master help sign in
metaphone: bad indexing
commite981eb04982f3b3e950ad0f30d0b0ac76882fd5b authorHunter Miller <hunter@hmiller.dev> dateTue 9 Aug 2022, 13:22 (4 years ago) parentd6bd4b0
2 files changed+2−1
desk/desk.docket-0+1−1 desk/lib/metaphone.hoon+1
desk/desk.docket-0+1−1
@@ -4,7 +4,7 @@
44 image+'https://nyc3.digitaloceanspaces.com/hmillerdev/nocsyx-lassul/2022.7.16..04.35.22-sphinx-web-shifted.svg'
55 glob-http+['https://nyc3.digitaloceanspaces.com/hmillerdev/sphinx/glob-0v7.folii.k685s.mjn1b.46up6.but26.glob' 0v7.folii.k685s.mjn1b.46up6.but26]
66 base+'sphinx'
7− version+[0 4 4]
7+ version+[0 4 5]
88 website+'https://github.com'
99 license+'MIT'
1010==
desk/lib/metaphone.hoon+1
@@ -155,6 +155,7 @@
155155 ?: forward
156156 ?: (gth (add index offset) (dec (lent text))) ''
157157 (snag (add index offset) text)
158+ ?: (lth index offset) ''
158159 ?: (lth (sub index offset) 0) ''
159160 (snag (sub index offset) text)
160161 --