From a8e6bae6df32bcb17e2209785c6ae8da08b7ccf7 Mon Sep 17 00:00:00 2001 From: "M. Wulff" Date: Sun, 24 Oct 2021 09:18:23 +0000 Subject: [PATCH] release v7.0.5 --- bin/rexreplace.cli.js | 2 +- bin/rexreplace.cli.min.js | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/rexreplace.cli.js b/bin/rexreplace.cli.js index 6a3399b0..b7ac6eb5 100755 --- a/bin/rexreplace.cli.js +++ b/bin/rexreplace.cli.js @@ -72,7 +72,7 @@ var path = require('path'); var globs = require('globs'); var now = new Date(); - var version = '7.0.4'; + var version = '7.0.5'; function engine(config) { if ( config === void 0 ) config = { engine: 'V8' }; diff --git a/bin/rexreplace.cli.min.js b/bin/rexreplace.cli.min.js index 6cb453da..18949750 100755 --- a/bin/rexreplace.cli.min.js +++ b/bin/rexreplace.cli.min.js @@ -19,8 +19,8 @@ X=/bytes|size/.test(e.replacement),I=X&&5E7process.argv.length)/-v|--?version$/i.test(process.argv[process.argv.length-1])?(console.log("7.0.4"),process.exitCode=0,process.exit()):U=/-h|--?help$/i.test(process.argv[process.argv.length-1])?1:2;else{var oa=process.argv.splice(2,2);var va=oa[0];var pa=oa[1]}var E=require("yargs").strict().usage("RexReplace 7.0.4: Regexp search and replace for files using lookahead and backreference to matching groups in the replacement. Defaults to global multiline case-insensitive search.\n\n> rexreplace pattern replacement [fileGlob|option]+").example("> rexreplace 'Foo' 'xxx' myfile.md", -"'foobar' in myfile.md will become 'xxxbar'").example("").example("> rr Foo xxx myfile.md","The alias 'rr' can be used instead of 'rexreplace'").example("").example("> rexreplace '(f?(o))o(.*)' '$3$1\u20ac2' myfile.md","'foobar' in myfile.md will become 'barfoo'").example("").example("> rexreplace '^#' '##' *.md","All markdown files in this dir got all headlines moved one level deeper").version("v","Print rexreplace version (can be given as only argument)","7.0.4").alias("v","version").boolean("V").describe("V", +T=require("globs"),qa=new Date,ma={euro:/\u20ac/g,section:/\u00a7/g},U=0;if(4>process.argv.length)/-v|--?version$/i.test(process.argv[process.argv.length-1])?(console.log("7.0.5"),process.exitCode=0,process.exit()):U=/-h|--?help$/i.test(process.argv[process.argv.length-1])?1:2;else{var oa=process.argv.splice(2,2);var va=oa[0];var pa=oa[1]}var E=require("yargs").strict().usage("RexReplace 7.0.5: Regexp search and replace for files using lookahead and backreference to matching groups in the replacement. Defaults to global multiline case-insensitive search.\n\n> rexreplace pattern replacement [fileGlob|option]+").example("> rexreplace 'Foo' 'xxx' myfile.md", +"'foobar' in myfile.md will become 'xxxbar'").example("").example("> rr Foo xxx myfile.md","The alias 'rr' can be used instead of 'rexreplace'").example("").example("> rexreplace '(f?(o))o(.*)' '$3$1\u20ac2' myfile.md","'foobar' in myfile.md will become 'barfoo'").example("").example("> rexreplace '^#' '##' *.md","All markdown files in this dir got all headlines moved one level deeper").version("v","Print rexreplace version (can be given as only argument)","7.0.5").alias("v","version").boolean("V").describe("V", "More chatty output").alias("V","verbose").boolean("L").describe("L","Literal string search (no regex used when searching)").alias("L","literal").boolean("I").describe("I","Void case insensitive search pattern.").alias("I","void-ignore-case").boolean("G").describe("G","Void global search (stop looking after the first match).").alias("G","void-global").boolean("s").describe("s","Have `.` also match newline.").alias("s","dot-all").boolean("M").describe("M","Void multiline search pattern. Makes ^ and $ match start/end of whole content rather than each line.").alias("M", "void-multiline").boolean("u").describe("u","Treat pattern as a sequence of unicode code points.").alias("u","unicode").default("e","utf8").alias("e","encoding").describe("e","Encoding of files/piped data.").alias("E","engine").describe("E","What regex engine to use:").choices("E",["V8"]).default("E","V8").boolean("q").describe("q","Only display errors (no other info)").alias("q","quiet").boolean("Q").describe("Q","Never display errors or info").alias("Q","quiet-total").boolean("H").describe("H", "Halt on first error").alias("H","halt").default("H",!1).boolean("d").describe("d","Print debug info").alias("d","debug").boolean("\u20ac").describe("\u20ac","Void having '\u20ac' as alias for '$' in pattern and replacement parameters").alias("\u20ac","void-euro").boolean("\u00a7").describe("\u00a7","Void having '\u00a7' as alias for '\\' in pattern and replacement parameters").alias("\u00a7","void-section").boolean("o").describe("o","Output the final result instead of saving to file. Will also output content even if no replacement has taken place.").alias("o", diff --git a/package.json b/package.json index f45b2c85..0f356ded 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rexreplace", - "version": "7.0.4", + "version": "7.0.5", "description": "Smoothly search & replace in files from CLI.", "author": "Mathias Rangel Wulff", "funding": {