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

PATLAB-2 update pattern types sanitation

parent 68f62dd9
......@@ -16,10 +16,12 @@
function sanatizePatterntype (str, to_plural) {
if ( (typeof to_plural != 'undefined') && (to_plural === true) ) {
return String(str)
.replace('atom/', 'atoms/')
.replace('molecule/', 'molecules/')
.replace('organism/', 'organisms/')
.replace('template/', 'templates/')
.replace('atom/', 'atoms/')
.replace('molecule/', 'molecules/')
.replace('organism/', 'organisms/')
.replace('component/', 'components/')
.replace('template/', 'templates/')
.replace('page/', 'pages/')
;
}
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