@gingkoo/pandora-metabase 1.0.25 → 1.0.27

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.
@@ -55,7 +55,7 @@ var _default = exports["default"] = (0, _index.register)('en', {
55
55
  'SqlQueryBuilder.visualize': 'visualize',
56
56
  'SqlQueryBuilder.selectColumnAll': 'select all',
57
57
  'SqlQueryBuilder.alias': 'alias',
58
- 'SqlQueryBuilder.aliasForRules': 'Please modify the alias according to the rules, and ensure its length does not exceed 30 characters',
58
+ 'SqlQueryBuilder.aliasForRules': 'Please enter letters and underscores, with a length not exceeding 30 bytes',
59
59
  'customColumn.operator': 'operator',
60
60
  'customColumn.collection': 'collection',
61
61
  'customColumn.field': 'field',
@@ -51,7 +51,7 @@ var _default = exports["default"] = (0, _index.register)('zh', {
51
51
  'SqlQueryBuilder.visualize': '可视化',
52
52
  'SqlQueryBuilder.selectColumnAll': '全选',
53
53
  'SqlQueryBuilder.alias': '别名',
54
- 'SqlQueryBuilder.aliasForRules': '请按规则修改别名,且长度不能超过30',
54
+ 'SqlQueryBuilder.aliasForRules': '请输入字母加下划线,且长度不能超过30个字节',
55
55
  'customColumn.operator': '操作符',
56
56
  'customColumn.collection': '自定义组合',
57
57
  'customColumn.field': '字段',
package/lib/cjs/utils.js CHANGED
@@ -265,7 +265,7 @@ var _changeAlias = function changeAlias(items, val, type) {
265
265
  };
266
266
  function isValidSQLAlias(str) {
267
267
  if (!str) return false;
268
- var regex = /^[A-Za-z_][A-Za-z0-9_]{0,29}$/;
268
+ var regex = /^[A-Za-z_]{0,30}$/;
269
269
  return regex.test(str);
270
270
  }
271
271
  var changeTableAlias = exports.changeTableAlias = function changeTableAlias(list, curObj) {
@@ -49,7 +49,7 @@ export default register('en', {
49
49
  'SqlQueryBuilder.visualize': 'visualize',
50
50
  'SqlQueryBuilder.selectColumnAll': 'select all',
51
51
  'SqlQueryBuilder.alias': 'alias',
52
- 'SqlQueryBuilder.aliasForRules': 'Please modify the alias according to the rules, and ensure its length does not exceed 30 characters',
52
+ 'SqlQueryBuilder.aliasForRules': 'Please enter letters and underscores, with a length not exceeding 30 bytes',
53
53
  'customColumn.operator': 'operator',
54
54
  'customColumn.collection': 'collection',
55
55
  'customColumn.field': 'field',
@@ -45,7 +45,7 @@ export default register('zh', {
45
45
  'SqlQueryBuilder.visualize': '可视化',
46
46
  'SqlQueryBuilder.selectColumnAll': '全选',
47
47
  'SqlQueryBuilder.alias': '别名',
48
- 'SqlQueryBuilder.aliasForRules': '请按规则修改别名,且长度不能超过30',
48
+ 'SqlQueryBuilder.aliasForRules': '请输入字母加下划线,且长度不能超过30个字节',
49
49
  'customColumn.operator': '操作符',
50
50
  'customColumn.collection': '自定义组合',
51
51
  'customColumn.field': '字段',
package/lib/es/utils.js CHANGED
@@ -254,7 +254,7 @@ var _changeAlias = function changeAlias(items, val, type) {
254
254
  };
255
255
  export function isValidSQLAlias(str) {
256
256
  if (!str) return false;
257
- var regex = /^[A-Za-z_][A-Za-z0-9_]{0,29}$/;
257
+ var regex = /^[A-Za-z_]{0,30}$/;
258
258
  return regex.test(str);
259
259
  }
260
260
  export var changeTableAlias = function changeTableAlias(list, curObj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gingkoo/pandora-metabase",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "lib/es/index.js",
6
6
  "module": "lib/es/index.js",