summaryrefslogtreecommitdiff
path: root/inc/assets/js/ast-parse-svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'inc/assets/js/ast-parse-svg.js')
-rw-r--r--inc/assets/js/ast-parse-svg.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/assets/js/ast-parse-svg.js b/inc/assets/js/ast-parse-svg.js
new file mode 100644
index 0000000..c92ff68
--- /dev/null
+++ b/inc/assets/js/ast-parse-svg.js
@@ -0,0 +1,12 @@
+function parseSVG ( svg ) {
+
+ svg = svg.replace( "far ", "" )
+ svg = svg.replace( "fas ", "" )
+ svg = svg.replace( "fab ", "" )
+ svg = svg.replace( "fa-", "" )
+ svg = svg.replace( "fa ", "" )
+
+ return svg
+}
+
+export default parseSVG