Replies: 2 comments 11 replies
-
Correct. this is not the tool for that job. Use the StringManipulatorTool instead!
You can add multiple manipulators or create one uber pattern... there is also a fix in the latest preview to enable you to override the default rather than merge it in... note that the Tfs Object Model does not support some characters... note: The workaround is to change the appsettings.json and remove the default manipulator if you don't have the version with the fix. Funding for us doing work on this tool is generally through 1) customer funding, or 2) donated free time. |
Beta Was this translation helpful? Give feedback.
-
I'm expecting the pattern to match any instance of any individual character in the set defined by the pattern [\uffff\u004f\uf1a4\ud3a7\u751b\uf210]+, and replace each character found with "". In this example the characters happen to be together, but that is not necessarily the case. I tested the pattern on the website you use for regex testing and it identifies each character in the string whether they are together or not. See screen capture below: Not sure what what your statement, "however [\uffff\u004f\uf1a4\ud3a7\u751b\uf210]+ does not match \uF1A4".", is trying to say. Do you think there is a casing problem or that the set of \u characters is not valid for the StringManiuplatorTool? |
Beta Was this translation helpful? Give feedback.
-
I am trying to replace "invalid characters" so they can be saved in paragraph fields like description. Below is a snipit of a V1 configuration with character maps. If only one of the characters is present then the mapping works fine. If multiple characters are present it does not work and logging seems to indicate that each mapping starts with the original source data to do the mapping, meaning only the last found mapping takes affect.
Can multiple mappings be done on a single field?
Can multiple fields use the same mapping (i.e. have multiple source fields and targetfields) with repeating the configuration for each field?
"FieldMaps": [
{
"$type": "RegexFieldMapConfig",
"WorkItemTypeName": "",
"sourceField": "System.Description",
"targetField": "System.Description",
"pattern": "\uFFFF",
"replacement": "U+FFFF"
},
{
"$type": "RegexFieldMapConfig",
"WorkItemTypeName": "",
"sourceField": "System.Description",
"targetField": "System.Description",
"pattern": "\uF1A4",
"replacement": "U+F1A4"
},
{
"$type": "RegexFieldMapConfig",
"WorkItemTypeName": "*",
"sourceField": "System.Description",
"targetField": "System.Description",
"pattern": "\uF210",
"replacement": "U+F210"
},
Beta Was this translation helpful? Give feedback.
All reactions