[ale] Determining a scripts language?

Alex Carver agcarver+ale at acarver.net
Thu Apr 7 09:52:40 EDT 2016


On 2016-04-07 04:00, DJ-Pfulio wrote:
> On 04/06/2016 08:08 PM, Alex Carver wrote:
>>
>> %.* trims everything from f after the last dot (including the dot)
>> returning the prefix
> 
> What happens if there isn't any suffix?
> May need to check for that.

If there is no suffix (and no dots) it returns whatever it received.

So:

foo.sh -> foo
bar.rb -> bar
baz -> baz
uh.oh.py -> uh.oh



More information about the Ale mailing list