fix: convert spaces to underscores in subwallet lightning address suggestion#2086
fix: convert spaces to underscores in subwallet lightning address suggestion#2086Dunsin-cyber wants to merge 1 commit intogetAlby:masterfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThe lightning address initialization logic in SubwalletCreated.tsx was modified to support underscores and handle whitespace more intelligently. Consecutive spaces are now converted to underscores, and the string is trimmed before filtering invalid characters. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
fixes #2070
This PR improves the subwallet creation UX by updating the lightning address suggestion logic to support underscores. Instead of stripping all non-alphanumeric characters, the code now converts spaces to underscores.
Summary by CodeRabbit