aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-02-15 00:29:20 -0500
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-02-15 00:29:20 -0500
commit7def99140aa8d9e3a4cdd0b678afed9adea95b69 (patch)
treed6124487ae272adf1a32cf5ed027a1c6c411c466 /test
parenta81fbc0b621aef0eae640be3dc453eda409c70c2 (diff)
Fixed inability to replace found text with escapes like '\n' and '\t'.
Diffstat (limited to 'test')
-rw-r--r--test/test.lua3
1 files changed, 2 insertions, 1 deletions
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