From 7def99140aa8d9e3a4cdd0b678afed9adea95b69 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Mon, 15 Feb 2021 00:29:20 -0500 Subject: Fixed inability to replace found text with escapes like '\n' and '\t'. --- test/test.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.lua b/test/test.lua index 5d09a514..3bd20223 100644 --- a/test/test.lua +++ b/test/test.lua @@ -2653,7 +2653,8 @@ function test_find_replace_regex_transforms() ['f\\1ba\\L\\2'] = 'foObarbaz', ['f\\1ba\\U\\l\\2'] = 'foObarBaz', [''] = 'az', - ['\\0'] = 'foObaRbaz' + ['\\0'] = 'foObaRbaz', + ['\\r\\n\\t'] = '\r\n\taz' } for regex, replacement in pairs(replacements) do ui.find.replace_entry_text = regex -- cgit v1.2.3