Skip to content
Browse files

Bugfix on toggle string:symbol script, between ruby versions

  • Loading branch information...
1 parent c7e2bff commit 9560b8e6266ac7e2dc43663b20c4b1cb0c0db711 @tinogomes tinogomes committed Sep 15, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 Commands/Toggle String:Symbol.tmCommand
View
6 Commands/Toggle String:Symbol.tmCommand
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -11,8 +11,8 @@
print case str = STDIN.read
# Handle standard quotes
- when /\A["'](\w+)["']\z/: ":" + $1
- when /\A:(\w+)\z/: '"' + $1 + '"'
+ when /\A["'](\w+)["']\z/ then ":" + $1
+ when /\A:(\w+)\z/ then '"' + $1 + '"'
# Default case
else str
end

0 comments on commit 9560b8e

Please sign in to comment.
Something went wrong with that request. Please try again.