Skip to content

Commit 226d160

Browse files
committed
🎨 Improve code about binary_format
1 parent 8374792 commit 226d160

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ repos:
3737
args:
3838
- --msg-filename
3939
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
40-
rev: 3.2.1
40+
rev: 3.5.0
4141
hooks:
4242
- id: editorconfig-checker
43+
# https://github.com/editorconfig-checker/editorconfig-checker/issues/505
44+
args:
45+
- -disable-charset
4346
- repo: https://github.com/jumanjihouse/pre-commit-hooks
4447
rev: 3.0.0
4548
hooks:
@@ -50,29 +53,29 @@ repos:
5053
exclude_types:
5154
- zsh
5255
- repo: https://github.com/rhysd/actionlint
53-
rev: v1.7.7
56+
rev: v1.7.9
5457
hooks:
5558
- id: actionlint
5659
- repo: https://github.com/adrienverge/yamllint
5760
rev: v1.37.1
5861
hooks:
5962
- id: yamllint
6063
- repo: https://github.com/executablebooks/mdformat
61-
rev: 0.7.22
64+
rev: 1.0.0
6265
hooks:
6366
- id: mdformat
6467
additional_dependencies:
6568
- mdformat-pyproject
6669
- mdformat-gfm
67-
- mdformat-myst
70+
# - mdformat-myst
6871
- mdformat-toc
6972
- mdformat-deflist
70-
# - mdformat-beautysh
73+
- mdformat-beautysh
7174
- mdformat-ruff
7275
- mdformat-config
7376
- mdformat-web
7477
- repo: https://github.com/DavidAnson/markdownlint-cli2
75-
rev: v0.18.1
78+
rev: v0.19.1
7679
hooks:
7780
- id: markdownlint-cli2
7881
additional_dependencies:

lua/prompt/style.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ local function get_os()
124124
if os.getenv("PREFIX") == "/data/data/com.termux/files/usr" then
125125
return "android"
126126
end
127-
local binary_format = package.cpath:match('([^.]+)$'):gsub(";$", "")
127+
local binary_format = package.cpath:match('([^.]+);?$')
128128
if binary_format == "so" then
129129
return get_distribution()
130130
elseif binary_format == "dll" then

0 commit comments

Comments
 (0)