ezekg / xo Goto Github PK
View Code? Open in Web Editor NEWCommand line utility that composes regular expression matches.
License: MIT License
Command line utility that composes regular expression matches.
License: MIT License
Imagine I downloaded this app once, then forgot about it, then rediscovered on disk.
Obvious questions are: what it does, is it safe (any dry-run switch), how fresh it is, where to get updates…
$ xo.exe & xo.exe --version & xo.exe --help
Usage: xo '/<pattern>/<formatter>/[flags]'
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x30 pc=0x4010f5]
goroutine 1 [running]:
main.main()
/Users/EzekielGabrielse/Go/src/github.com/ezekg/xo/main.go:24 +0xb5
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x30 pc=0x4010f5]
goroutine 1 [running]:
main.main()
/Users/EzekielGabrielse/Go/src/github.com/ezekg/xo/main.go:24 +0xb5
For example,
cat /etc/apache2/sites-available/*.conf | xo '/\*:443.*?ServerName\s(www\.)?([-.0-9A-Za-z]+)/$1:?www.$2/mis'
stops on the .
after www
, so sites that contain www.
in the name are output as www..site-name.com
. To fix this, we should introduce optionally wrapping fallback values within parenthesis, as well as support for escaping those parenthesis in the case that they are actually needed in the formatter.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.