diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/utils/index.js b/frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/utils/index.js index 8921129f6..168427def 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/utils/index.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/utils/index.js @@ -5,7 +5,7 @@ import * as locale from "./locale"; import * as obps from "./obps"; import * as pt from "./pt"; import * as privacy from "./privacy"; -import PDFUtil, { downloadReceipt ,downloadPDFFromLink,downloadBill ,getFileUrl} from "./pdf"; +import PDFUtil, { downloadReceipt, downloadPDFFromLink, downloadBill, getFileUrl } from "./pdf"; import getFileTypeFromFileStoreURL from "./fileType"; import preProcessMDMSConfig from "./preProcessMDMSConfig"; import preProcessMDMSConfigInboxSearch from "./preProcessMDMSConfigInboxSearch"; @@ -26,7 +26,7 @@ const getPattern = (type) => { case "SearchOwnerName": return /^[^{0-9}^\$\"<>?\\\\~!@#$%^()+={}\[\]*,/_:;“”‘’]{3,50}$/i; case "MobileNo": - return /^[6789][0-9]{9}$/i; + return /^[456789][0-9]{9}$/i; case "Amount": return /^[0-9]{0,8}$/i; case "NonZeroAmount": @@ -170,9 +170,7 @@ const NOCAccess = () => { const userInfo = Digit.UserService.getUser(); const userRoles = userInfo?.info?.roles?.map((roleData) => roleData?.code); - const NOC_ROLES = [ - "FIRE_NOC_APPROVER" - ] + const NOC_ROLES = ["FIRE_NOC_APPROVER"]; const NOC_ACCESS = userRoles?.filter((role) => NOC_ROLES?.includes(role)); @@ -266,7 +264,7 @@ const hrmsAccess = () => { const wsAccess = () => { const userInfo = Digit.UserService.getUser(); const userRoles = userInfo?.info?.roles?.map((roleData) => roleData?.code); - const waterRoles = ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER","WS_CLERK"]; + const waterRoles = ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"]; const WS_ACCESS = userRoles?.filter((role) => waterRoles?.includes(role)); @@ -276,7 +274,7 @@ const wsAccess = () => { const swAccess = () => { const userInfo = Digit.UserService.getUser(); const userRoles = userInfo?.info?.roles?.map((roleData) => roleData?.code); - const sewerageRoles = ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER","SW_CLERK"]; + const sewerageRoles = ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]; const SW_ACCESS = userRoles?.filter((role) => sewerageRoles?.includes(role)); @@ -325,5 +323,5 @@ export default { getConfigModuleName, preProcessMDMSConfig, preProcessMDMSConfigInboxSearch, - ...privacy + ...privacy, };