Skip to content

hook snippets should only grab up to the first '.' #3

@ryanarmstrong

Description

@ryanarmstrong

When the hook code snippets grab the filename, they grab everything up to the last '.'

This works fine for any .module, .install etc but doesn't work anytime you have a file like modulename.views.inc etc as it creates:

function modulename.views($vars) {}

Here's a regular expression that changes that behavior: ^[^.]+(?=.)

I tried editing hook.sublime-snippet but it didn't seem to make a difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions