Skip to content

Wont replace a variable followed by a semicolon #8

@hplains

Description

@hplains

For example this statement is not correctly handled:

var foo = SOMECONFIGPARAM;

where SOMECONFIGPARAM is defined in the context, it will fail to be replaced.

Fix is simple add a semicolon to the expression on line 316:

contents = contents.replace(new RegExp('([ \+\-\\!\|\[\]\'\"\>\<\=\(\)\n\t])(' + prop + ')([ \'\[\]\+\-\(\)\=\\&\>\<\{\};\n\t!])', 'gi'), function (match, pre, include, post) {

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