From 1db2f9de71589292ec8b01d8ab356ac3f711c48b Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Sun, 10 May 2015 13:34:00 -0400 Subject: [PATCH] Handle single line selection in "react_wrap" Fixes #3 --- react_wrap.sublime-snippet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react_wrap.sublime-snippet b/react_wrap.sublime-snippet index bf3642a..1860655 100644 --- a/react_wrap.sublime-snippet +++ b/react_wrap.sublime-snippet @@ -1,7 +1,7 @@ - -$0${SELECTION/([ \t]+)([^\n]+)/\t$1$2/g} -${SELECTION/( +).*/$1/}]]> + +$0${SELECTION/([ \t]*)([^\n]*)/\t$1$2/g} +${SELECTION/([ \t]*).*/$1/}]]> source.js React: wrap in a component