Hacker News new | ask | show | jobs
by coyotebush 4567 days ago
So the jQuery regex, for comparison, is

  (^|/)jquery([^.]*)(\.min)?\.js$
while the Bootstrap regex in question is

  (^|/)bootstrap([^.]*)(\.min)\.(js|css)$
with the ".min" not optional. (Looks like this was the intent [1]).

The 68.9%/26.5% percentages match the 130k/50k ratio of bootstrap.css to bootstrap.js, so it looks like only bootstrap.min.js is being excluded?

[1] https://github.com/github/linguist/commit/d5002ef06a9f346391...

1 comments

Thanks for pointing that out. You're right - it does seem like it was intentional. I filed an issue for this though just in case, and perhaps they'll explain the reason: https://github.com/github/linguist/pull/856