Refactored XOR.js to call replace once #221

Merged
Rudxain merged 2 commits from patch-1 into master 2022-05-07 21:10:43 -04:00
Rudxain commented 2022-05-07 19:22:25 -04:00 (Migrated from github.com)

Now it's optimized and refactored to replace the same chars as before and leave other chars intact. The s (dot-all) flag is used to reduce conditional branching. I don't know if this code is actually better in the Node env, I just wanted to suggest this as a possible alternative

Now it's optimized and refactored to replace the same chars as before and leave other chars intact. The `s` (dot-all) flag is used to reduce conditional branching. I don't know if this code is actually better in the Node env, I just wanted to suggest this as a possible alternative
GDColon commented 2022-05-07 21:10:45 -04:00 (Migrated from github.com)

Looks like I learned something new today

Looks like I learned something new today
Sign in to join this conversation.
No description provided.