module fb { export class PostortWO extends ResourceBase { Postort: string; constructor(data) { super(data, false); } postInit(data) { var self = this; if (self.Postort && typeof self.Postort === 'string' && self.Postort.length > 1) { self.Postort = self.Postort.toLowerCase(); self.Postort = self.Postort.charAt(0).toUpperCase() + self.Postort.substring(1); self.Postort = self.Postort.replace(/[- ]+[a-zA-ZåäöÅÄÖ]{1}/g, function (match, $1, $2, offset, original) { return match.toUpperCase(); }) } } } }