Giter Club home page Giter Club logo

Comments (6)

Ryan6578 avatar Ryan6578 commented on July 28, 2024

Possibly add clue validation. Ensure it's one word (or hypenated) with a number before the clue encodes.

from codewords.

PlatypusEggs avatar PlatypusEggs commented on July 28, 2024

I was thinking about the pattern for this earlier.

This might be a start:
^%a+%-%a+%-%a+%s*%-%s%d$
or
^%a+%-
%a+%-%a+-%s%-*%sinf$
Also allow the word infinite? or maybe even ∞?

Maybe allow for "100 - 4" as well?

from codewords.

Ryan6578 avatar Ryan6578 commented on July 28, 2024

For regex, @rjg88? I'm not sure that would work.

from codewords.

Ryan6578 avatar Ryan6578 commented on July 28, 2024

This regex would roughly work I would think:

.+[\s|-][0-9]+

from codewords.

PlatypusEggs avatar PlatypusEggs commented on July 28, 2024

LUA doesn't support regex, they are "patterns"

from codewords.

Ryan6578 avatar Ryan6578 commented on July 28, 2024

Ahh. At that point, I'd rather just write my own validation. LOL

from codewords.

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.