Skip to content

Commit

Permalink
feat(emscli): function match + styleValidTags (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaMic authored Oct 10, 2023
1 parent 0c063fc commit 9157714
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions elasticms-cli/migrate-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ The JSON config file list all web resources to synchronise for each document.
}
],
"validClasses": ["toc"],
"styleValidTags": [
"table",
"th",
"tr",
"td",
"img"
],
"linkToClean": ["/^\\/fr\\/glossaire/"],
"types": [
{
Expand All @@ -175,8 +182,8 @@ The JSON config file list all web resources to synchronise for each document.
"condition": "true"
},
{
"property": "[themes]",
"expression": "data.get('themes') == '' ? null : datalinks(split('/([a-zA-Z\u00e9\u00e8\u00e0\\-][a-zA-Z \u00e9\u00e8\u00e0\\-]+)\\\\|[0-9a-f]{8}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{12} */',data.get('themes')),'taxonomy')",
"property": "[target_groups]",
"expression": "data.get('target_groups') == '' ? null : datalinks(match('/\\\\|(?P<matches>[0-9a-f]{8}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{4}\\-[0-9a-f]{12})/',data.get('themes')),'taxonomy')",
"jsonDecode": false,
"condition": "true"
},
Expand Down

0 comments on commit 9157714

Please sign in to comment.