anilmuthineni / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

Regex replace causes duplicate output #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Search for "ARTIFACT_NAME"
2. Replace With SCRIPT_ARGUMENTS=validateDeployPath\r\nARTIFACT_NAME
3.

What is the expected output? 
SCRIPT_ARGUMENTS=validateDeployPath
ARTIFACT_NAME=PublicAutoEAR

What do you see instead?
SCRIPT_ARGUMENTS=validateDeployPath
SCRIPT_ARGUMENTS=validateDeployPath
ARTIFACT_NAME=PublicAutoEAR

What version of the product are you using? On what operating system?
0.15.0 With firefox 21
Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by walter.k...@gmail.com on 23 Aug 2013 at 5:33

GoogleCodeExporter commented 9 years ago
I have tried and it works correctly, producing the expected output. Are you 
sure you haven't applied it twice?

Original comment by marc.r...@gmail.com on 24 Aug 2013 at 5:06

GoogleCodeExporter commented 9 years ago
I think I fixed this problem by only using "\n" and removing the "\r" text.   
Maybe it is a Linux / Windows platform difference?  However, since I'm on 
windows I would have expected \r\n to work.

Original comment by walter.k...@gmail.com on 28 Aug 2013 at 2:09

GoogleCodeExporter commented 9 years ago
I have now tried it on Windows and I still get the correct output.

Original comment by marc.r...@gmail.com on 28 Aug 2013 at 4:11