From 14791b3c67299b938dcf776b5db8e4cf245d1f84 Mon Sep 17 00:00:00 2001 From: William Kelley Date: Sat, 10 Jul 2021 01:56:07 -0400 Subject: [PATCH] capture spaces in rename filter --- libs/spark-icons/defaults/renameFilter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/spark-icons/defaults/renameFilter.js b/libs/spark-icons/defaults/renameFilter.js index 76a943afb..bc65d8a1e 100644 --- a/libs/spark-icons/defaults/renameFilter.js +++ b/libs/spark-icons/defaults/renameFilter.js @@ -14,7 +14,7 @@ function myDestRewriter(svgPathObj) { fileName = fileName .replace(/.svg/, '.tsx') .replace( - /(^.)|(_)(.)|( - )(.)|( )(.)/g, + /(^.)|(\s*_\s*)(.)|(\s*-\s*)(.)|(\s+)(.)/g, (match, p1, p2, p3, p4, p5, p6, p7) => (p1 || p3 || p5 || p7).toUpperCase() );