Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This extension hopes to clean the HTML that Adobe Edge Reflow makes in order to provide a better starting spot for hand coded projects.

## Author
The author of this extension is Terrence Ryan (https://github.com/tpryan). I merely added a workaround to get the CSS extractor to work again with a new version of Brackets/Adobe Edge Code CC.

## Abilities
Currently the project does the following:

Expand Down
5 changes: 4 additions & 1 deletion reflowCSSExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,9 @@ var ReflowCSSExtractor = function (csscontent) {
};

this.hexToRGB = function (hex) {
if (hex == null) {
return {r: 0, g:0, b:0};
}
// Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex = hex.replace(shorthandRegex, function (m, r, g, b) {
Expand Down Expand Up @@ -799,4 +802,4 @@ var ReflowCSSExtractor = function (csscontent) {

};

};
};