Coder Social home page Coder Social logo

Comments (3)

pcottle avatar pcottle commented on April 25, 2024

Hey @sandyarmstrong

I can't seem to reproduce this -- we definitely allow multiple periods in the filename:

screen shot 2015-05-07 at 6 24 31 pm
screen shot 2015-05-07 at 6 24 39 pm

Can you perhaps provide some example input or a solid repro?

Note that we have separate regex for files that dont have a directory prepended to them (aka stuff like echo.py):
https://github.com/facebook/PathPicker/blob/master/src/parse.py#L30

but we have to be a lot more restrictive with that regex since we dont want to match JS code like:

data.object.some.field

(closing for now, reopen if you have the repro). a lot of this pain would go away if we simply checked if the file exists...

from pathpicker.

sandyarmstrong avatar sandyarmstrong commented on April 25, 2024

Your example only works because you provided an absolute path. It fails with relative paths. For example:

touch ~/banana.Project.sln
cd ~
echo banana.Project.sln | fpp
ls | fpp

Then you'll see the bad matching. I've tested with latest master.

from pathpicker.

sandyarmstrong avatar sandyarmstrong commented on April 25, 2024

Fixed in 3792357.

from pathpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.