docs(admin/tables): clarify NUL sentinel in unescapeShellQuoting
This commit is contained in:
parent
c1c3ba5fef
commit
b230d44687
1 changed files with 4 additions and 2 deletions
|
|
@ -1564,14 +1564,16 @@
|
||||||
// time so already-stored corrupt rows still display readably.
|
// time so already-stored corrupt rows still display readably.
|
||||||
function unescapeShellQuoting(s) {
|
function unescapeShellQuoting(s) {
|
||||||
if (!s) return s;
|
if (!s) return s;
|
||||||
|
// Order matters: protect real backslashes via NUL sentinel first,
|
||||||
|
// unescape the well-known sequences, then restore real backslashes.
|
||||||
return s
|
return s
|
||||||
.replace(/\\\\/g, ' ')
|
.replace(/\\\\/g, ' | ||||||