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

Programmatically using Replace - correctly finds the search term but doesn't replace #30

Closed
fi5u opened this issue Oct 31, 2013 · 1 comment

Comments

@fi5u
Copy link

fi5u commented Oct 31, 2013

Hi, I'm using the JavaScript code to find and replace some strings. From the results in the console I can see that it is correctly finding two instances, however, the files remain unchanged. I set preview to false just incase it was true by default. But still the string is not being replaced. Have I got something wrong with the call?

var WPpaths = projectDir + '/app/wp-content/themes/' + siteName + '/assets/scss';
replace({
    regex: 'Domain',
    replacment: 'New domain',
    paths: [WPpaths],
    recursive: true,
    count: true,
    preview: false
});
@fi5u fi5u closed this as completed Nov 7, 2013
@fi5u
Copy link
Author

fi5u commented Nov 7, 2013

Sorry, just seen my spelling mistake!

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

1 participant