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
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -4095,6 +4095,11 @@ class CommonService {
|
|
|
4095
4095
|
const datePipe = new DatePipe('vi-VN');
|
|
4096
4096
|
return datePipe.transform(value, format);
|
|
4097
4097
|
}
|
|
4098
|
+
convertToUnSign(s) {
|
|
4099
|
+
const regex = /\p{Diacritic}/gu;
|
|
4100
|
+
const temp = s.normalize('NFD');
|
|
4101
|
+
return temp.replace(regex, '').replace('\u0111', 'd').replace('\u0110', 'D');
|
|
4102
|
+
}
|
|
4098
4103
|
}
|
|
4099
4104
|
CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
4100
4105
|
CommonService.decorators = [
|