Coder Social home page Coder Social logo

loquor's Introduction

loquor's People

Contributors

dependabot[bot] avatar jamesrwilliams avatar snyk-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

loquor's Issues

Change encoding method

I have this idea to abstract the response encoding method a little during processing as a way to allow support for applying multiple rulesets against a string at once.

Currently, the parser returns [3,13] numerical arrays as results by default. While the AS script works like this I'd like to introduce a middle format to use before the responses are sent. See below:

Step Input Encoded
Default to unsafe <p>Hello World</p> 000000000000000000
Parse layer 1 <p>Hello World</p> 000111111111110000

This output is then encoded into the same numerical array of [3,13] but the output encoded string can be run through multiple rule sets removing possible issues finding overlaps in the numerical arrays.

Add ruleset selection parameter to parse request

We should add a parameter to override what rulesets to be used by the request. Suggested syntax:

Current payload:

{
  "entries" : []
}

Proposed payload:

{
 "options": {
    "rules": ["html, handlebars, twig"]
  }
  "entries" : []
}

HTML Tag Parser: incorrect result for value that start with a tag pair.

HTML Parser unexpected result:

Description Data
Test Case <strong>Error:</strong> lorem ipsum.
Expected 111111110000001111111110000000000000
Actual 111111110000001111111111111111111111

Weirdly doesn't happen if the tag is at the end of the string. Or if the whole input starts with an element.

Add parser dialog.

Add UI dialog to allow some configuration changes prior to script runs:

  • Select option to change the API version / endpoint (ngrok vs Heroku)
  • Input range selection - The input range for the source data to be formatted
  • Output range selection - The output range for the formatted section (warning if overwriting input)
  • Ruleset selection (Requires API work - see #13)

Handlebars Parser: Unexpected parsing result

handlebarsParser() returns an unexpected result for the following test case:

Description Data
Test Case {quantity, plural, one {%lp.currency.name%} other{%lp.currency.name.plural%}}
Expected 11111111111111111111111111111111111111111111111111111111111111111111111111111
Actual 11111111111111111111111111111111111111111110000001111111111111111111111111111

Improve documentation

  • Clean up README - Its a bit messy at the moment, extract docs to separate repo/site
  • Add docs section - Adding a new validator
  • Adding a new test cases
  • Google Apps install instructions - (end users)

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.