From b8c3d14ce3d0644acc5d85fafa9400f893707f53 Mon Sep 17 00:00:00 2001 From: Joel Stransky Date: Thu, 11 Apr 2019 12:17:15 -0700 Subject: [PATCH] changed capitalize to upcase --- snippets/snippets.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/snippets/snippets.json b/snippets/snippets.json index b11abd4..f786de9 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -1,16 +1,13 @@ { "useState()": { "prefix": "us", - "body": [ - "const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState($2);", - "$0" - ], + "body": ["const [${1}, set${1/(.*)/${1:/upcase}/}] = useState($2);", "$0"], "description": "useState()" }, "useState(true)": { "prefix": "ust", "body": [ - "const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState(true);", + "const [${1}, set${1/(.*)/${1:/upcase}/}] = useState(true);", "$0" ], "description": "useState(true)" @@ -18,7 +15,7 @@ "useState(false)": { "prefix": "usf", "body": [ - "const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState(false);", + "const [${1}, set${1/(.*)/${1:/upcase}/}] = useState(false);", "$0" ], "description": "useState(false)" @@ -26,7 +23,7 @@ "useState(null)": { "prefix": "usn", "body": [ - "const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState(null);", + "const [${1}, set${1/(.*)/${1:/upcase}/}] = useState(null);", "$0" ], "description": "useState(null)"