|
1234567 |
- 'use strict';
-
- function trimSVG(str) {
- return str.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').trim();
- }
-
- exports.trimSVG = trimSVG;
|