mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Expand nodes-base formatting validation (no-changelog) (#4689)
* ⚡ Simplify `format` command * 🎨 Format more deeply nested files
This commit is contained in:
@@ -950,10 +950,20 @@ export function validateJSON(json: string | undefined): any {
|
||||
* @param blockValues the blockUi.blockValues node parameter.
|
||||
*/
|
||||
export function extractDatabaseMentionRLC(blockValues: IDataObject[]) {
|
||||
blockValues.forEach(bv => {
|
||||
blockValues.forEach((bv) => {
|
||||
if (bv.richText && bv.text) {
|
||||
const texts = (bv.text as { text: [{ textType: string, mentionType: string, database: string | { value: string, mode: string, __rl: boolean, __regex: string } }] }).text;
|
||||
texts.forEach(txt => {
|
||||
const texts = (
|
||||
bv.text as {
|
||||
text: [
|
||||
{
|
||||
textType: string;
|
||||
mentionType: string;
|
||||
database: string | { value: string; mode: string; __rl: boolean; __regex: string };
|
||||
},
|
||||
];
|
||||
}
|
||||
).text;
|
||||
texts.forEach((txt) => {
|
||||
if (txt.textType === 'mention' && txt.mentionType === 'database') {
|
||||
if (typeof txt.database === 'object' && txt.database.__rl) {
|
||||
if (txt.database.__regex) {
|
||||
|
||||
Reference in New Issue
Block a user