mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
* Ensure backslash chars are escaped in formula field. * Add changelog entry
228 lines
4.4 KiB
JSON
228 lines
4.4 KiB
JSON
[
|
|
{
|
|
"formula": "",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "'hello'",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [{ "text": "hello", "type": "text" }]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "'\\\\'",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [{ "text": "\\", "type": "text" }]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "'a\\\\b'",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [{ "text": "a\\b", "type": "text" }]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "concat('hello', 'there')",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{ "type": "text", "text": "hello" },
|
|
{ "type": "text", "text": "there" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "concat('hello', 'there', 'friend :)')",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{ "type": "text", "text": "hello" },
|
|
{ "type": "text", "text": "there" },
|
|
{ "type": "text", "text": "friend :)" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "get('data_source.hello.there')",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "\u200B"
|
|
},
|
|
{
|
|
"type": "get-formula-component",
|
|
"attrs": {
|
|
"path": "data_source.hello.there",
|
|
"isSelected": false
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"text": "\u200B"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "concat(get('data_source.hello.there'), 'friend :)')",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "\u200B"
|
|
},
|
|
{
|
|
"type": "get-formula-component",
|
|
"attrs": {
|
|
"path": "data_source.hello.there",
|
|
"isSelected": false
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"text": "\u200B"
|
|
},
|
|
{ "type": "text", "text": "friend :)" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
|
|
{
|
|
"formula": "concat('hello', '\n', 'there')",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "hello"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "there"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "concat('hello', '\n', get('data_source.hello.there'))",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "hello"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "\u200B"
|
|
},
|
|
{
|
|
"type": "get-formula-component",
|
|
"attrs": {
|
|
"path": "data_source.hello.there",
|
|
"isSelected": false
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"text": "\u200B"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"formula": "concat('hello', '\n', '')",
|
|
"content": {
|
|
"type": "doc",
|
|
"content": [
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "hello"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "wrapper",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "\u200B"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|