Permalink
Browse files

Avoid RegExp bug in FF 3.6.

  • Loading branch information...
1 parent 603d86a commit df2e3c2a816caf0d9762628eae47e664935cea25 @mbostock mbostock committed May 1, 2011
Showing with 8 additions and 4 deletions.
  1. +2 −0 d3.csv.js
  2. +1 −1 d3.csv.min.js
  3. +1 −1 d3.js
  4. +1 −1 d3.min.js
  5. +1 −1 src/core/core.js
  6. +2 −0 src/csv/parse.js
View
@@ -26,6 +26,8 @@ d3.csv.parseRows = function(text, f) {
t, // the current token
eol; // is the current token followed by EOL?
+ re.lastIndex = 0; // work-around bug in FF 3.6
+
/** @private Returns the next token. */
function token() {
if (re.lastIndex == text.length) return EOF; // special case: end of file
View
Oops, something went wrong.
View
2 d3.js
@@ -1,4 +1,4 @@
-(function(){d3 = {version: "1.14.1"}; // semver
+(function(){d3 = {version: "1.14.2"}; // semver
if (!Date.now) Date.now = function() {
return +new Date();
};
View
Oops, something went wrong.
View
@@ -1 +1 @@
-d3 = {version: "1.14.1"}; // semver
+d3 = {version: "1.14.2"}; // semver
View
@@ -21,6 +21,8 @@ d3.csv.parseRows = function(text, f) {
t, // the current token
eol; // is the current token followed by EOL?
+ re.lastIndex = 0; // work-around bug in FF 3.6
+
/** @private Returns the next token. */
function token() {
if (re.lastIndex == text.length) return EOF; // special case: end of file

0 comments on commit df2e3c2

Please sign in to comment.