Bert
Bert
Explore posts from servers
Aarktype
Created by Bert on 11/29/2024 in #questions
Test that a string contains a substring?
Thanks
9 replies
Aarktype
Created by Bert on 11/29/2024 in #questions
Test that a string contains a substring?
Yeah, it works, but it could be written better
9 replies
Aarktype
Created by Bert on 11/29/2024 in #questions
Test that a string contains a substring?
ah that's cool
9 replies
Aarktype
Created by Bert on 11/29/2024 in #questions
Test that a string contains a substring?
arkType([
{ status: '"Event Completed"', message: 'string' },
':',
r => r.message.includes('test')
]).assert(result)
arkType([
{ status: '"Event Completed"', message: 'string' },
':',
r => r.message.includes('test')
]).assert(result)
Best approach?
9 replies
Aarktype
Created by Bert on 8/21/2024 in #questions
String length
I really don't know, maybe I was being dumb
10 replies
Aarktype
Created by Bert on 8/21/2024 in #questions
String length
And did see that page but I don't think it says for strings.
10 replies
Aarktype
Created by Bert on 8/21/2024 in #questions
String length
I think I tried "1<=string" and got an error about this only being valid for numbers, so figured I couldn't do it like that.
10 replies
Aarktype
Created by Bert on 8/21/2024 in #questions
String length
Ah thanks
10 replies
Aarktype
Created by frolic on 8/21/2024 in #questions
codecs
in is related to tIn, but weirdly out is related to tValidatedOut
277 replies
Aarktype
Created by frolic on 8/21/2024 in #questions
codecs
there are tIn tOut which have the in and out types, and tValidatedOut which is { limit: unknown } for your code.
277 replies
Aarktype
Created by frolic on 8/21/2024 in #questions
codecs
At I guess I would say perhaps you aren't meant to use allows/travers on in/out. But i'm not at all certain
277 replies
Aarktype
Created by frolic on 8/21/2024 in #questions
codecs
If you're just trying to test the validation, just use params({ limit: "1" })? Or is this more for the sake of discovery?
277 replies