Changeset 246271 in webkit
- Timestamp:
- Jun 10, 2019 12:32:00 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r246268 r246271 1 2019-06-10 Alexey Shvayka <shvaikalesh@gmail.com> 2 3 Web Inspector: "Copy Path to Property" doesn't work with multiline keys 4 https://bugs.webkit.org/show_bug.cgi?id=198691 5 6 Reviewed by Matt Baker. 7 8 Correctly escape line terminators to prevent doubleQuotedString from returning malformed strings. 9 10 * UserInterface/Base/Utilities.js: Use JSON.stringify. 11 1 12 2019-06-10 Devin Rousso <drousso@apple.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js
r246026 r246271 1638 1638 function doubleQuotedString(str) 1639 1639 { 1640 return "\"" + str.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"";1640 return JSON.stringify(str); 1641 1641 } 1642 1642
Note: See TracChangeset
for help on using the changeset viewer.