Skip to content

Commit

Permalink
Stopped RE_COMMENT from greedily collecting whitespace after a commen…
Browse files Browse the repository at this point in the history
…t (Fixes comments between @import rules bug)

Incremented version number.
  • Loading branch information
keithclark committed May 17, 2011
1 parent b427f3a commit b7378a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ selectivizr - change log
Current Build
-------------

* NEW - selectivizr now honours media specific @imports in style sheets

* NEW - selectivizr now honours media specific @imports in style sheets.
* BUG - comments placed between @import rules caused the import to fail.


v1.0.2
Expand Down
4 changes: 2 additions & 2 deletions selectivizr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
selectivizr v1.0.2b - (c) Keith Clark, freely distributable under the terms
selectivizr v1.0.3b - (c) Keith Clark, freely distributable under the terms
of the MIT license.
selectivizr.com
Expand Down Expand Up @@ -67,7 +67,7 @@ References:
var namespace = "slvzr";

// Stylesheet parsing regexp's
var RE_COMMENT = /(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g;
var RE_COMMENT = /(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*?/g;
var RE_IMPORT = /@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))\s*([^;]*);/g;
var RE_ASSET_URL = /\burl\(\s*(["']?)(?!data:)([^"')]+)\1\s*\)/g;
var RE_PSEUDO_STRUCTURAL = /^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/;
Expand Down

0 comments on commit b7378a1

Please sign in to comment.