definy.json-string-after
- description
- The text after the first pattern in json up to the next " ("" if not found)
- type
Fn(json: String, pattern: String) -> String
- expression
fn(json$0, pattern$1) => let found$2 = @std.string-index-of(text: $0, target: $1, startIndex: 0); match @core.less-than(left: $2, right: 0) { true => "", false => let start$3 = @core.plus(left: $2, right: @core.string-length(value: $1)); let end$4 = @std.string-index-of(text: $0, target: "\"", startIndex: $3); match @core.less-than(left: $4, right: 0) { true => "", false => @core.string-slice(value: $0, start: $3, end: $4) } }
- visibility
- public
definy.json-string-after (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: SkJoqDf7h6L6UxKA7LuxaHSS99_KwS3rLw69Lu15njs content hash: M9tOwaEFzwGZoRZPH09ZBsBzJ92FjLRemsYJalFHvTQ