emiloberg / liferay-ddmtool

Tool for authoring, uploading, downloading and synchronizing Liferay DDM related stuff (Structures and Templates) across environments.
MIT License
36 stars 16 forks source link

Adding underscore to the "exotic characters in the structure/template names" ;) #12

Open josejuanmontiel opened 8 years ago

josejuanmontiel commented 8 years ago

You said in documentation:

There may be no exotic characters in the structure/template names (nothing which is not valid filename on an old Windows machine, so no slash, no comma, etc).

You make a replace of exotic characters using this regex (/[^a-zA-Z0-9 .-]/g, "") to nothing... but underscore character should be consider a valid "old windows" name... this cause we can update template (only download) because it replace RS_XXX_TEMPLATE to RSXXXTEMPLATE.

Thanks for this great tool.