opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
787 stars 318 forks source link

Invalidate Component names that contain characters that denote an Output, Channel or an alias #2007

Open aseth1 opened 6 years ago

aseth1 commented 6 years ago

Currently special characters like |, :, and () are not flagged as invalid for Component names since we use them to denote an Output name following | and can specify its Channel for a list Output with :, or supply an alias within () when connecting to an Input. These special characters are used to serialize Input connections, but we should validate Output/Channel paths (with aliases) apart from the Component's name.

This was raised in #1955.

tkuchida commented 6 years ago

Add check to ensure "\" is caught correctly.