@xuda.io/xuda-widget-plugin-xuda-drive 1.0.29 → 1.0.31

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/package.json +1 -1
  2. package/runtime.mjs +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-widget-plugin-xuda-drive",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Xuda Drive widget plugin",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public"
package/runtime.mjs CHANGED
@@ -333,7 +333,10 @@ export async function upload(fields, e) {
333
333
  let file_tags = [];
334
334
  if (fields.auto_tag_generator) {
335
335
  let identifier = fields.auto_tag_identifier || " ";
336
- file_tags = file.name.split(identifier);
336
+
337
+ const filename = path.parse(file.name).name;
338
+
339
+ file_tags = filename.split(identifier);
337
340
  if (fields.auto_tag_translation) {
338
341
  for (let tag of file_tags) {
339
342
  if (fields.auto_tag_translation[tag]) {