Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3529597
D9713.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
353 B
Referenced Files
None
Subscribers
None
D9713.diff
View Options
diff --git a/lib/utils/sanitization.js b/lib/utils/sanitization.js
--- a/lib/utils/sanitization.js
+++ b/lib/utils/sanitization.js
@@ -134,7 +134,7 @@
function scrambleText(str: string): string {
const arr = [];
- for (const char of str) {
+ for (const char of new String(str)) {
if (char === ' ') {
arr.push(' ');
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 8:17 PM (10 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703069
Default Alt Text
D9713.diff (353 B)
Attached To
Mode
D9713: [Flow202][lib][skip-ci] [21/23] Fix Flow issues with iterating through chars in a string
Attached
Detach File
Event Timeline
Log In to Comment