Closed yusufpapurcu closed 3 years ago
Hey @yusufpapurcu - the old implementation is completely broken:
"cleanValue"
, rather than the cleanValuecleanValue
is not cleaned in any way, whereas values
is (but value
isn't)
- regexp call is passed the arguments in the wrong order. This isn't being detected at the moment because the error returned is just being thrown away; I'm no longer ignoring it which is why there's a panic (shouldn't be triggered unless someone changes the pattern)
That's a huge mistake I'm sorry for this. You're right we need change this. I will test new form of In filter and reverse commits if it works. Also we can use regexp.MustCompile
. This function panics if pattern wrong.
Ok I reversed my revert commit. Thanks for help 💯
Reverts supabase/postgrest-go#13 Could you explain problem with issue and wait us for review? Also why you added panic into function?