Skip to content

Commit

Permalink
Fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
margusholland committed Feb 3, 2017
1 parent e4fa75e commit 56557cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Comma.sketchplugin/Contents/Sketch/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@
"title": "Comma"
},
"identifier": "com.margusholland.commafucker",
"version": "1.1.2",
"version": "1.1.3",
"description": "Set of commands to clean up and modify text layers.",
"authorEmail": "margusholland@me.com",
"name": "Comma",
"compatibleVersion": "3.8"
"compatibleVersion": "42"
}
17 changes: 1 addition & 16 deletions Comma.sketchplugin/Contents/Sketch/script.cocoascript
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var toJSArray = function(obj) {
var l = obj.count()
var l = obj.count
var r = [];
for (var i=0; i < l; i++) {
r.push(obj.objectAtIndex(i))
Expand Down Expand Up @@ -141,21 +141,6 @@ var onRemoveDoubleSpaces = function(context) {
}
}

/* var onCurlyQuotes = function(context) {
layers = layers(context)
for (var i=0; i < [layers count]; i++) {
var item = [layers objectAtIndex:i]
if ([[item class] isEqual:[MSTextLayer class]]) {
var string = [item stringValue]
string = string.replace(/(^\")/gi, '“');
string = string.replace(/( \")/gi, ' “');
string = string.replace(/\"/g, '”');
item.setStringValue(string)
moveLayer(item)
}
}
} */

var onSingleSpaceAfterPunctuation = function(context) {
layers = layers(context)
for (var i=0; i < [layers count]; i++) {
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Select text layers, layer groups or artboards to change the text. Following comm

# Change log

## v.1.1.3 (Sketch 42 compatibility)
* Fixes issues with Sketch 42
NB! Might not be backwards compatible, don’t have any earlier version to test on

## v.1.1.2 (Sketch 3.8.X compatibility)
* Fixes issues with Sketch 3.8 and later

Expand Down

0 comments on commit 56557cd

Please sign in to comment.