Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSed is applied only once by line #965
Open
Labels
Comments
|
You need to use |
|
Thank you ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Node version (or tell us if you're using electron or some other framework):
12.1.0
ShellJS version (the most recent version/Github branch you see the bug on):
0.8.3
Operating system:
Windows
Description of the bug:
sed is applied only once by line:
original archive:
import [COMPONENTNAME]Base from './[COMPONENTNAME]Base';const [COMPONENTNAME] = styled( [COMPONENTNAME]Base );export default [COMPONENTNAME];after execute:
shell.sed( '-i',\[${"componentname".toUpperCase()}\], "AUITest", "component.js");`Result:
import AUITestBase from './[COMPONENTNAME]Base';const AUITest = styled( [COMPONENTNAME]Base );export default AUITest;