Permalink
Browse files

Fix typo in codesearch for replacing content

  • Loading branch information...
1 parent a702fad commit 43ba27ee124cc89a86388182f9b39e45a964c412 @gjtorikian gjtorikian committed Jun 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/DAV/plugins/codesearch.js
@@ -216,9 +216,9 @@ var prevFile;
// pipe the grep results into perl
cmd += " -l | xargs " + jsDAV_Codesearch_Plugin.PERL_CMD +
// print the grep result to STDOUT (to arrange in parseSearchResult())
- " -p0777i -e 'print STDOUT \"$ARGV:$.:$_\"" +
+ " -pi -e 'print STDOUT \"$ARGV:$.:$_\"" +
// do the actual replace
- "if s/" + query + "/" + options.replacement + "/mg" + ( !Util.isTrue(options.casesensitive) ? "i" : "" ) + ";'"
+ " if s/" + query + "/" + options.replacement + "/mg" + ( !Util.isTrue(options.casesensitive) ? "i" : "" ) + ";'"
}
if (jsDAV.debugMode) {

0 comments on commit 43ba27e

Please sign in to comment.