Skip to content

Commit

Permalink
Merge pull request #41 from rwjblue/stupidity
Browse files Browse the repository at this point in the history
Ensure that carriage return is part of whitespace calculations.
  • Loading branch information
rwjblue authored Aug 29, 2018
2 parents 8e5100c + 84f2588 commit ad4959d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ast-transform.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

const reLines = /(.*?(?:\n\r|\n|$))/gm;
const reLines = /(.*?(?:\r\n?|\n|$))/gm;
const ALPHA = /[A-Za-z]/;
const WHITESPACE = /[\t\n\f ]/;
const WHITESPACE = /[\t\r\n\f ]/;

class AngleBracketPolyfill {
constructor(options) {
Expand Down

0 comments on commit ad4959d

Please sign in to comment.