Coder Social home page Coder Social logo

Comments (2)

edunham avatar edunham commented on August 12, 2024

also

09:47 <@trivia> Next question:
09:47 <@trivia> History: The Symbols _ (Addition) And - (Subtraction) Came 
                Into General Use In 1489
09:47 <@trivia> Clue: +
09:47 < edunham> +

from triviabot.

rawsonj avatar rawsonj commented on August 12, 2024

This is a duplicate of #39 since the same code responsible for that is responsible for this.

There is a fix in the refactoring branch that will take care of this, as it completely changes how sanitization happens in the bot.

You can enumerate the number of things the bot will eat and file issues for them, but it is not productive.

The code responsible just calls isalnum() to check if there is any weird characters at the beginning of the string and eats them if they are present. This was flawed but seemed to work at the time.

The new method sanitizes by regex, so will preserve symbols at the beginning of the string. It's just going to take me a while to merge the refactored branch since working on this is just a hobby and my time is taken up by other things.

Closing this issue since it's a duplicate.

from triviabot.

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.