Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for several regex replacements to the config #17

Open
mojo2012 opened this issue Jan 8, 2016 · 3 comments
Open

Add support for several regex replacements to the config #17

mojo2012 opened this issue Jan 8, 2016 · 3 comments

Comments

@mojo2012
Copy link

mojo2012 commented Jan 8, 2016

It would be nice to offer a way in the json config of the dashing tool to configure the preprocessing of the input data with several regex replacements instead of just one, and/or some shorthands for commons things like remove line feeds.

@technosophos
Copy link
Owner

How would you envision that looking in the config? I think it's a good idea.

@mojo2012
Copy link
Author

Something like this:

{ "name": "BusyBox", "package": "busybox", "index": "BusyBox.html", "icon32x32": "busybox1.png", "selectors": { "dt a": "Command", "title": { "type": "Package", "replacements": [ { "string": " - The Swiss Army Knife of Embedded Linux", "replacement": "" }, { "regex": "\nTest", "replacement": "Test" } ] } }, "ignore": [ "ABOUT" ] }

It offers a plain string replacement, and the other option is to use a regex.

(sorry, markup syntax doesn't seem to work correctly.

@technosophos
Copy link
Owner

I'm going to look into implementing this. It'll take me a while, because I'm buys with some other things, but I think this is a workable idea that would benefit a lot of users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants