infernojs / babel-plugin-inferno

Transforms JSX to InfernoJS vNodes
MIT License
79 stars 26 forks source link

fix regex, allow trailing whitespace #31

Closed lukeed closed 7 years ago

lukeed commented 7 years ago

Allows the example.js to return:

createVNode(2, 'div', null, ['Hello world, ', ['Foo!', 'Bar!']]);

Similarly:

`
        <p>
          This should have
          no new lines in it
          or spaces at start
          and end
        </p>
`

//=> <p> This should have no new lines in it or spaces at start and end </p>