tnx-shared 5.3.360 → 5.3.361
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/tnx-shared.umd.js +5 -0
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/common.service.js +6 -1
- package/fesm2015/tnx-shared.js +5 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +1 -0
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -5028,6 +5028,11 @@
|
|
|
5028
5028
|
var datePipe = new i3.DatePipe('vi-VN');
|
|
5029
5029
|
return datePipe.transform(value, format);
|
|
5030
5030
|
};
|
|
5031
|
+
CommonService.prototype.convertToUnSign = function (s) {
|
|
5032
|
+
var regex = /\p{Diacritic}/gu;
|
|
5033
|
+
var temp = s.normalize('NFD');
|
|
5034
|
+
return temp.replace(regex, '').replace('\u0111', 'd').replace('\u0110', 'D');
|
|
5035
|
+
};
|
|
5031
5036
|
return CommonService;
|
|
5032
5037
|
}());
|
|
5033
5038
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|