Skip to content

Commit e07ab16

Browse files
utils: pattern_escape now escapes the ? character
1 parent 9a31598 commit e07ab16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ end
272272
---@param str string
273273
---@return string
274274
function fb_utils.pattern_escape(str)
275-
return (string.gsub(str, "([%^%$%(%)%%%.%[%]%*%+%-])", "%%%1"))
275+
return (string.gsub(str, "([%^%$%(%)%%%.%[%]%*%+%-%?])", "%%%1"))
276276
end
277277

278278
---Standardises filepaths across systems.

0 commit comments

Comments
 (0)