yeawood_consts 1.0.20 → 1.0.22

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.
Files changed (2) hide show
  1. package/index.js +13 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -11,6 +11,8 @@ exports.USER_TABLE_MAP = {
11
11
  // 数据_id正则
12
12
  exports.ID_PATTERN = '^\\w{24}$'
13
13
  // 手机号正则
14
+ exports.EMAIL_PATTERN = '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$'
15
+ // 手机号正则
14
16
  exports.PHONE_PATTERN = '^1(3\\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$'
15
17
 
16
18
  // MongoDB事务参数
@@ -137,3 +139,14 @@ exports.TENDER_CEE_PROJECT_STATE_CALCULATOR = (
137
139
  return exports.TENDER_CEE_PROJECT_STATE_QUOTED
138
140
  }
139
141
  }
142
+
143
+ exports.TENDER_COMPANY_FILTER = (company, company_curr) => {
144
+ switch (company) {
145
+ case company_curr:
146
+ return company
147
+ case '重庆飞鸿运输有限公司':
148
+ return '重庆帝睿物流有限公司'
149
+ default:
150
+ return company
151
+ }
152
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeawood_consts",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},