Skip to content

Conversation

@GerHobbelt
Copy link

See the individual commits; the patch for #1 can be easily separated out.
The other useful stuff in here:

  • tests ported to mocha+chai
  • npm script commands updated (ESlint instead of JSHint)

…sso (which requires special C compiler build action on Windows platforms and is outmoded anyway)
…nes, not vice versa!

- added sanity checking to the most important input parameters: must be sane numbers.
…lowing arbitrary line breaks in the input, but outputting the requested type (Windows, Unix, Mac). Garbage in, Sanity out.
…ed. WARNING: `multiLineBreak` regex is *NOT* a multi-linebreak regex but something else instead: it gobbles all whitespace around a single lineBreak, including other lineBreaks!

    // any 'multiple linebreak' regex should have the pattern: \s*\n(\s*\n)+
    // where \n represents the lineBreak of choice.
    //
…our patch ASAP and use it anywhere (e.g. nomnom -> jison).
… be crlf/lf/cr converted by GIT but should instead be treated as 'raw' input for the tests!
…nt reports. Used extra eslint config files for the example and test directories to quickly shut the linter up for those codebases, which (IMO) don't need to be treated as strict as the library itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant