Skip to content

master (Linux) does not see filenames with capital filename extensions #587

@njdro

Description

@njdro

Describe the bug

  • master's open-file dialog does not see files with capital letter extensions
  • e.g. BBL, AVI, etc do not list; However bbl, avi do list.
  • Linux 5.10.0-15-amd64 SMP Debian 5.10.120-1 (2022-06-09) x86_64 GNU/Linux (did not test other OS's)
  • PR Bump NW.js and ffpmeg library to 0.62.2 and Node to 16.15.1 #574 does not solve.
  • the code is correctly using the /i ignore case parameter, therefore i suspect NWjs as the problem-source
                isLog = files[i].name.match(/\.(BBL|TXT|CFL|BFL|LOG)$/i),
                isVideo = files[i].name.match(/\.(AVI|MOV|MP4|MPEG)$/i),
                isWorkspaces = files[i].name.match(/\.(JSON)$/i);

image

To Reproduce

on Linux, use 3.6.0, open files

Expected behavior

list compatible files no matter the extension letter-case (lowerCase / capitalCase)

Betaflight Blackbox Explorer version

3.6.0

Add any other context about the problem that you think might be relevant here

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions