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.
@@ -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 = [