fix(stdlib): strip CR from console lines
This commit is contained in:
1 parent
4a0caabc03
commit
e6b5678350
2 files changed
+14
-4
No files matched your search
+13
-3
@@ -60,19 +60,29 @@ EOF 返回 `{ok:false, code:"io.eof"}`,无效 UTF-8 返回可恢复错误。
|
||||
|
||||
4. `true`
|
||||
|
||||
**页 = (长度(字节) + 65535) // 65536**
|
||||
**数据长度 = 长度(字节)**
|
||||
|
||||
1. `数据长度 > 0 and 字节[数据长度 - 1] == 13`
|
||||
|
||||
**数据长度 = 数据长度 - 1**
|
||||
|
||||
2. `true`
|
||||
|
||||
**忽略 = 0**
|
||||
|
||||
**页 = (数据长度 + 65535) // 65536**
|
||||
|
||||
**数据 = memory.new(页, 页)**
|
||||
|
||||
**下标 = 0**
|
||||
|
||||
- `下标 < 长度(字节)`
|
||||
- `下标 < 数据长度`
|
||||
|
||||
**`数据[下标] = 字节[下标]`**
|
||||
|
||||
**下标 = 下标 + 1**
|
||||
|
||||
**解码 = utf8.解码(数据, 0, 长度(字节))**
|
||||
**解码 = utf8.解码(数据, 0, 数据长度)**
|
||||
|
||||
1. `not 解码.ok`
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "marqdo-stdlib",
|
||||
"version": "0.1.0",
|
||||
"digest": "sha256:2ac71536436fefbb96b3ba9e60713bef82d34c746090ae2ebb53a5e225fd789d"
|
||||
"digest": "sha256:471dc131a5de3ffd0bb32edbbf1da0d25746f0d943a410d288fdaf30f77ee6ac"
|
||||
}
|
||||
Reference in new issue
Block a user