GithubHelp home page GithubHelp logo

Comments (3)

didavid61202 avatar didavid61202 commented on June 3, 2024 3

Maybe we can add letter.lowercase and letter.uppercase
Thanks for suggestion! 👍

from magic-regexp.

ccjmne avatar ccjmne commented on June 3, 2024 2

Hey 👋,

I'm interested in working on this!
I'm not too sure how to approach the API design, however.

@didavid61202, are you suggesting that letter becomes:

const letter: Input<"[a-zA-Z]", never, []> & {
    lowercase: Input<"[a-z]", never, []>,
    uppercase: Input<"[A-Z]", never, []>,
}

?

Otherwise, we could expand the API to include standalone lowercase and uppercase Inputs...

 export const whitespace = createInput('\\s')
 export const letter = createInput('[a-zA-Z]')
+export const lowercase = createInput('[a-z]')
+export const uppercase = createInput('[A-Z]')
 export const tab = createInput('\\t')

I'd like to get it done as part of the Hacktoberfest event, so... as soon as we've settled on an API, I'm raring to get started!

from magic-regexp.

danielroe avatar danielroe commented on June 3, 2024 1

Yes, I think that the first option was what @didavid61202 was suggesting, and makes sense.

Also very happy to include other constructed inputs alongside letter/tab, but lower/upper-case makes sense to access within dot notation.

from magic-regexp.

Related Issues (20)

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.