Commit d7ce4d84 authored by Björn Bartels's avatar Björn Bartels

PATLAB-2 update pattern types sanitation

parent 68f62dd9
...@@ -16,10 +16,12 @@ ...@@ -16,10 +16,12 @@
function sanatizePatterntype (str, to_plural) { function sanatizePatterntype (str, to_plural) {
if ( (typeof to_plural != 'undefined') && (to_plural === true) ) { if ( (typeof to_plural != 'undefined') && (to_plural === true) ) {
return String(str) return String(str)
.replace('atom/', 'atoms/') .replace('atom/', 'atoms/')
.replace('molecule/', 'molecules/') .replace('molecule/', 'molecules/')
.replace('organism/', 'organisms/') .replace('organism/', 'organisms/')
.replace('template/', 'templates/') .replace('component/', 'components/')
.replace('template/', 'templates/')
.replace('page/', 'pages/')
; ;
} }
return String(str) return String(str)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment