Skip to content

fix: don't treat text after a dot as file extension when it contains spaces - #4369

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/extension-detection
Nov 9, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/extension-detection

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

A dot inside a file name like "Release notes v1.2 for customers" no longer makes the rest of the name count as file extension, so the name is shown from its start, renaming selects the whole name and "Keep both" appends "(1)" at the end.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: extension detection for names with whitespace after the last dot, normal and complex extensions, the WebDAV parser path
  • test case 2: browser: reproduced on main, then on the fix: such a file in table, tiles, search and shares on desktop and Pixel 7, normal files unchanged, rename with and without visible extensions, upload Keep both, folder with a dot, icons and open with

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear force-pushed the fix/extension-detection branch from f39365f to b2f4d69 Compare November 9, 2026 11:22
@AlexAndBear
AlexAndBear merged commit 46ebd2a into main Nov 9, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/extension-detection branch November 9, 2026 16:11
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A dot in a file name that isn't an extension hides the start of the name

2 participants