Skip to content

Commit ac6ace8

Browse files
committed
Minor formatting updates
1 parent 3dcc250 commit ac6ace8

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

CSScomb.espressoplugin/Scripts/csscomb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function processCSS(string) {
190190
}
191191

192192
function escapeForShell(message) {
193-
return message.replace(/\"/g, '\\"');
193+
return message.replace(/"/g, '\\"');
194194
}
195195

196196
function errorDialog(err) {

CSScomb.espressoplugin/Scripts/csscombAction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ action.performWithContext = function(context, outError) {
1414

1515
var nodeMissingMessage = 'CSScomb was not able to find Node.js\n\nPlease install Node on your system and make sure the Node command is available in Terminal\n\nhttps://nodejs.org/en/download/';
1616

17-
var scriptMissingMessage = "CSScomb was not able to find your Plug-Ins folder\n\nCSScomb.espressoplugin must be installed in\n~/Library/Application Support/Espresso/Plug-Ins/";
17+
var scriptMissingMessage = 'CSScomb was not able to find your Plug-Ins folder\n\nCSScomb.espressoplugin must be installed in\n~/Library/Application Support/Espresso/Plug-Ins/';
1818

1919
var scriptErrorMessage = 'CSScomb Node script failed';
2020

@@ -33,7 +33,7 @@ action.performWithContext = function(context, outError) {
3333

3434
var firstSnippet = new CETextSnippet('`if ! node -v > /dev/null; then echo "$EDITOR_SELECTION"; '+dialog(nodeMissingMessage)+'; elif ! test -d '+pluginsPath+'; then echo "$EDITOR_SELECTION"; '+dialog(scriptMissingMessage, 'caution')+'; else node '+scriptPath+' '+processFile+'-a "'+method+'" -t "'+tabString+'" -l "'+lineEndingString+'" || { '+dialog(scriptErrorMessage, 'caution')+'; echo "$EDITOR_SELECTION"; }; fi`');
3535

36-
var snippet = new CETextSnippet('`node '+scriptPath+' '+processFile+'-a "'+method+'" -t "'+tabString+'" -l "'+lineEndingString+'" || { '+dialog(scriptErrorMessage, 'caution')+'; echo "$EDITOR_SELECTION"; }`');
36+
var snippet = new CETextSnippet('`node '+scriptPath+' -a "'+method+'" -t "'+tabString+'" -l "'+lineEndingString+'" || { '+dialog(scriptErrorMessage, 'caution')+'; echo "$EDITOR_SELECTION"; }`');
3737

3838
function dialog(message, icon) {
3939
return '{ nohup osascript -e \'tell application "Espresso" to display dialog "' + message + '" buttons "OK" default button 1 with title "CSScomb" with icon ' + ( icon ? icon : 'note' ) + '\' &> /dev/null& }';

CSScomb.espressoplugin/Scripts/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (configpath !== null) {
2525
message += 'See csscomb.com for available config options.';
2626

2727
function escapeForShell(message) {
28-
return message.replace(/\"/g, '\\"');
28+
return message.replace(/"/g, '\\"');
2929
}
3030

3131
var osascript = spawn(

CSScomb.espressoplugin/Scripts/settingsAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ action.performWithContext = function(context, outError) {
99

1010
var nodeMissingMessage = 'CSScomb was not able to find Node.js\n\nPlease install Node on your system and make sure the Node command is available in Terminal\n\nhttps://nodejs.org/en/download/';
1111

12-
var scriptMissingMessage = "CSScomb was not able to find your Plug-Ins folder\n\nCSScomb.espressoplugin must be installed in\n~/Library/Application Support/Espresso/Plug-Ins/";
12+
var scriptMissingMessage = 'CSScomb was not able to find your Plug-Ins folder\n\nCSScomb.espressoplugin must be installed in\n~/Library/Application Support/Espresso/Plug-Ins/';
1313

1414
var scriptErrorMessage = 'CSScomb Node script failed';
1515

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This plugin is a fork of the original [CSScomb plugin for Espresso v2.1+](https:
55

66
## Requirements
77
- [Espresso v3+](http://macrabbit.com/espresso/)
8-
- [Node.js (v6+)](http://nodejs.org/)
8+
- [Node.js v6+](http://nodejs.org/)
99

1010
Note: No longer requires ShellActions.sugar
1111

0 commit comments

Comments
 (0)