It's all about the answers!

Ask a question

How to restrict . and , in workitem summary

vinay kumar bondugula (7312771) | asked Nov 29 '23, 6:30 a.m.

 Hi All,

Our development team want to avoid comma/quote (,) and fullstop (.) in summary of the workitems. We have tried restricting using the validators using a regular expression to restrict the special characters, but it is not working for the comma and fullstop. The current expression working for other special characters. We would like to know if anyone tried this earlier and share the right expression which worked.


One answer

permanent link
Ralph Schoon (63.2k33646) | answered Nov 30 '23, 3:36 a.m.

 The information

but it is not working for the comma and fullstop
is not very useful. You could have shared the regexp or other useful information. If the validator works for other characters, but not for , and . I would consider that the regexp is the issue. Note that . is a meta character for "any character", so it needs to be escaped to match . afaik.

The only other way to implement this, would be by implementing a pre-condition/advisor server extension. 

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.