mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
string-replace-fewer-backslashes -> regex-easyesc
This shortens a very long feature name. See discussion in #5805
This commit is contained in:
@@ -26,7 +26,7 @@ function fish_clipboard_paste
|
||||
#
|
||||
# This eases pasting non-code (e.g. markdown or git commitishes).
|
||||
if __fish_commandline_is_singlequoted
|
||||
if status test-feature string-replace-fewer-backslashes
|
||||
if status test-feature regex-easyesc
|
||||
set data (string replace -ra "(['\\\])" '\\\\$1' -- $data)
|
||||
else
|
||||
set data (string replace -ra "(['\\\])" '\\\\\\\$1' -- $data)
|
||||
|
||||
Reference in New Issue
Block a user