@zereight/mcp-gitlab 2.3.23-next.211 → 2.3.23-next.212

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.
@@ -232,14 +232,16 @@ function decodeFully(value) {
232
232
  * other Unicode forms, to try in turn while GitLab answers 404.
233
233
  *
234
234
  * GitLab matches the name byte for byte. macOS writes accents decomposed (e + U+0301)
235
- * and GitLab keeps the name as uploaded, while clients usually send it composed.
235
+ * and GitLab keeps the name as uploaded, while clients usually send it composed. A form
236
+ * that would decode further (`50%1Á` decomposed holds the escape `%1A`) is left out: it
237
+ * would be sent as another name.
236
238
  */
237
239
  export function uploadFilenameForms(filename) {
238
240
  const decoded = decodeFully(filename);
239
241
  if (decoded === null) {
240
242
  return [filename];
241
243
  }
242
- return [...new Set([decoded, decoded.normalize("NFD"), decoded.normalize("NFC")])];
244
+ return [...new Set([decoded, decoded.normalize("NFD"), decoded.normalize("NFC")])].filter(form => decodeFully(form) === form);
243
245
  }
244
246
  /**
245
247
  * Encode a single value for use as one GitLab URL path segment.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "2.3.23-next.211",
3
+ "version": "2.3.23-next.212",
4
4
  "mcpName": "io.github.zereight/gitlab-mcp",
5
5
  "description": "GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more",
6
6
  "keywords": [