Skip to content

Commit b7f1dbf

Browse files
committed
fix comment
1 parent 970cb95 commit b7f1dbf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/utils.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ var urlRegex = /^(https?|webpack(-[^:]+)?):\/\//;
1313
var debug = require('debug-fabulous')()(PLUGIN_NAME + ':utils');
1414

1515
/*
16-
TODO: DROP SUPPORT FOR node <= 0.12.X
17-
So reusing the same ref for a regex (with global (g))
18-
is a major bug in node 0.10.X apparently.
16+
So reusing the same ref for a regex (with global (g)) is from a poor decision in js.
1917
See http://stackoverflow.com/questions/10229144/bug-with-regexp-in-javascript-when-do-global-search
2018
21-
So we either need to use a new instance of a regex everywhere
22-
to make it compatible for all nodes 0.10.X + or drop support for 0.10.X.
23-
For now we will continue to support it I guess. But this sucks.
19+
So we either need to use a new instance of a regex everywhere.
2420
*/
2521
var sourceMapUrlRegEx = function(){ return /\/\/\# sourceMappingURL\=.*/g;}
2622

0 commit comments

Comments
 (0)