diff --git a/README.md b/README.md
index 0ff887c..fb98893 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ GUID text representation. The case of the format specifier determines whether lo
| Format | Example |
| - | - |
| n | `cbb297c014a940bc8d911d0ef9b42df9` |
-| n | `CBB297C014A940BC8D911D0EF9B42DF9` |
+| N | `CBB297C014A940BC8D911D0EF9B42DF9` |
| d | `cbb297c0-14a9-40bc-8d91-1d0ef9b42df9` |
| D | `CBB297C0-14A9-40BC-8D91-1D0EF9B42DF9` |
| b | `{cbb297c0-14a9-40bc-8d91-1d0ef9b42df9}` |
diff --git a/lua/guid.lua b/lua/guid.lua
index bad7302..ec2acec 100644
--- a/lua/guid.lua
+++ b/lua/guid.lua
@@ -35,8 +35,8 @@ end
local function insert_text_at_pos(text, pos)
local line = vim.fn.getline(pos.row)
- local prefix = string.sub(line, 0, pos.col - 1) ---@diagnostic disable-line: param-type-mismatch
- local suffix = string.sub(line, pos.col) ---@diagnostic disable-line: param-type-mismatch
+ local prefix = string.sub(line, 0, pos.col - 1)
+ local suffix = string.sub(line, pos.col)
vim.fn.setline(pos.row, prefix .. text .. suffix)
end
@@ -145,8 +145,8 @@ local function guid_format(style)
local match_pos = find_pattern_at_pos(guid_pattern, get_cursor_pos(), true)
if match_pos then
local line = vim.fn.getline(match_pos.row)
- local line_prefix = line:sub(1, match_pos.col - 1) ---@diagnostic disable-line: undefined-field
- local line_suffix = line:sub(match_pos.col + #match_pos.text) ---@diagnostic disable-line: undefined-field
+ local line_prefix = line:sub(1, match_pos.col - 1)
+ local line_suffix = line:sub(match_pos.col + #match_pos.text)
local guid_printed = guid_print(guid_parse(match_pos.text), style)
if guid_printed then
vim.fn.setline(match_pos.row, line_prefix .. guid_printed .. line_suffix)