Skip to content

Commit

Permalink
Handle single line selection in "react_wrap"
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
zertosh committed May 10, 2015
1 parent 82044aa commit 1db2f9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions react_wrap.sublime-snippet
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[${SELECTION/( +).*/$1/}<${1:Component}>
$0${SELECTION/([ \t]+)([^\n]+)/\t$1$2/g}
${SELECTION/( +).*/$1/}</${1/([^ ]+).*/$1/}>]]></content>
<content><![CDATA[${SELECTION/([ \t]*).*/$1/}<${1:Component}>
$0${SELECTION/([ \t]*)([^\n]*)/\t$1$2/g}
${SELECTION/([ \t]*).*/$1/}</${1/([^ ]+).*/$1/}>]]></content>
<scope>source.js</scope>
<description>React: wrap in a component</description>
</snippet>

0 comments on commit 1db2f9d

Please sign in to comment.