diff --git a/modules/ext.templateDataGenerator.data/Model.js b/modules/ext.templateDataGenerator.data/Model.js index 2b1547d7..81a2d93a 100644 --- a/modules/ext.templateDataGenerator.data/Model.js +++ b/modules/ext.templateDataGenerator.data/Model.js @@ -100,16 +100,7 @@ Model.static.compare = function ( obj1, obj2, allowSubset ) { * @return {string} Normalized non-obsolete type */ Model.static.translateObsoleteParamTypes = function ( paramType ) { - switch ( paramType ) { - case 'string/wiki-page-name': - return 'wiki-page-name'; - case 'string/wiki-file-name': - return 'wiki-file-name'; - case 'string/wiki-user-name': - return 'wiki-user-name'; - default: - return paramType; - } + return paramType.replace( /^string\//, '' ); }; /**