Coder Social home page Coder Social logo

globiter's Introduction

globiter โ€ƒ Build Status Latest Version

globiter turns glob range and set into Iterator.

Quick Start

let pattern = Pattern::parse("https://example.com/{a,b,c}/file/[001-003]")?;
for i in pattern.iter() {
    println("{i}")
}
// Output:
// https://example.com/a/file/001
// https://example.com/a/file/002
// https://example.com/a/file/003
// https://example.com/b/file/001
// ...
// https://example.com/c/file/003

Contributing

Check out the CONTRIBUTING.md guide for more details on getting started with contributing to this project.

Getting help

Submit issues for bug report or asking questions in discussion.

License

Licensed under Apache License, Version 2.0.

globiter's People

Contributors

xuanwo avatar wfxr avatar dependabot[bot] avatar

Stargazers

Sylvain Lesage avatar Dr Alexander Mikhalev avatar Shengqi Chen avatar Violet (Larson) avatar Nikita avatar  avatar Ce Gao avatar Cam avatar

Watchers

Dr Alexander Mikhalev avatar  avatar  avatar  avatar

Forkers

wfxr

globiter's Issues

Support trim space in set

For example:

https://example.com?filename={a , b , c}.json

Curl will treat them as illegal URLs:

:) curl -I "https://example.com?filename={a , b , c}.json"
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL

Add range support

Allow iter input like:

https://example.com?filename=[000..111].json
https://example.com?filename=[aa..zz].json

Do we need to support {000..111} too?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.