Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Detecting file type from shebangs doesn't work if there's a space #1470

Closed
tjl2 opened this issue Jan 24, 2014 · 2 comments
Closed

Detecting file type from shebangs doesn't work if there's a space #1470

tjl2 opened this issue Jan 24, 2014 · 2 comments

Comments

@tjl2
Copy link

tjl2 commented Jan 24, 2014

I saw that work has been done on this previously, but I've spotted that this isn't catching files that have a space in their shebang line, e.g.:

#! /usr/bin/env ruby

It's valid to write a shebang with a space before the command and they do work, so I guess it'll be a common enough case to cater for.

@kevinsawicki
Copy link
Contributor

This is managed by the different language packages that include a firstLineMatch in their grammar files.

So we can tweak the regex here for the ruby case.

@lock
Copy link

lock bot commented Jan 27, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants