Skip to content

Commit

Permalink
Fix runes error (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
kusyka911 authored Jun 11, 2024
1 parent 224f993 commit 792b1ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/fold-line.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

import runes from 'runes2'
import { runes, substring } from 'runes2'

export default function foldLine(line) {
const parts = []
let length = 75
while (runes(line).length > length) {
parts.push(runes.substring(line, 0, length))
line = runes.substring(line, length)
parts.push(substring(line, 0, length))
line = substring(line, length)
length = 74
}
parts.push(line)
Expand Down

0 comments on commit 792b1ca

Please sign in to comment.