Skip to content

Regexp not matching.  #28

@karimbeyrouti

Description

@karimbeyrouti

Hello there,

For some reason my regexp search and replace is no longer matching my selection - not sure which version this started happening with, however it used to work just fine. Nothing changed my side. ( I am using latest grunt / grunt-cli / replace ) .

Here is my replace grunt task:

    replace: {
        removeextend: {
            src: ['bin/js/**/*.js'],
            overwrite: true,                 // overwrite matched source files
            replacements: [{
                from: /var __extends[\W\S\D]*__\(\);\s};/g,
                to: ""
            }]
        }
    },...

and an example file: http://kurst.co.uk/transfer/JSONLoader.js

Here is the Regex in action: http://www.regexr.com/39u9o

Not sure why this stopped working - that query used to work. Any insight into why this stopped working would be welcome.

Thank you for your time.

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