GithubHelp home page GithubHelp logo

Comments (3)

xiaoxinghu avatar xiaoxinghu commented on July 28, 2024

it is caused by the () in the TODO directive. Normally we don't expect to see non-alphanumeric characters in todo keywords, but it's a risk to break the whole parser. It's fixed in v0.5.3, please verify. Thanks for the good finding.

from orgajs.

whacked avatar whacked commented on July 28, 2024

Thanks for the quick update. I can verify that this issue is fixed on windows (node v9.5.0) and on linux (v10.6.0). On linux (v8.0.0, v8.9.3) the parser fails with

./orgajs/node_modules/orga/lib/inline.js:63
        throw _iteratorError;
        ^

SyntaxError: Invalid regular expression: /(.*?(?:[\s\({'"]|^))\*([^,'"\s].*?)(?<=[^,'"\s])\*((?:[\s-\.,:!?'\)}]|$).*)/: Invalid group
    at RegExp (<anonymous>)
    at markup (./orgajs/node_modules/orga/lib/inline.js:21:10)
    at _loop (./orgajs/node_modules/orga/lib/inline.js:36:19)
    at parse (./orgajs/node_modules/orga/lib/inline.js:51:7)
    at Parser.process (./orgajs/node_modules/orga/lib/processors/headline.js:49:32)
    at Parser.parseSection (./orgajs/node_modules/orga/lib/parser.js:96:24)
    at Parser.parse (./orgajs/node_modules/orga/lib/parser.js:80:15)
    at parse (./orgajs/node_modules/orga/lib/index.js:13:17)
    at Object.<anonymous> (./orgajs/orga-test.js:3:13)
    at Module._compile (module.js:569:30)

for orga >= 0.5.2; though, this is likely a separate issue

from orgajs.

xiaoxinghu avatar xiaoxinghu commented on July 28, 2024

@whacked will try that out when I got chance. Thanks a lot.

from orgajs.

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.