Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #1 and makes the lib build and test on new Node + Windows platforms #2

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

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