-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Gun won't save regular expressions (which is good), but it will create a key when you pass one in.
var gun = Gun().get('test').set()
gun.path('regex').put(/expression/)
gun.val()
// => { _: Object, regex: Object } The regex isn't actually saved, but a key is created referencing a relation. If we look at how Infinity or NaN is handled, the key is never created, as though gun never saw the data (and for invalid values, and that makes sense here). Here's the minimum amount of code to create the issue:
Gun().get('test').set(/expression/)Reactions are currently unavailable