Skip to content

Commit

Permalink
Update transform_file.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Jun 11, 2022
1 parent d68a89e commit a1af13c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/transform_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function getVariableNameOfNS(raw, namespace) {
function getNSFromVariableName(raw, varname) {
if (varname === 'fabric') return 'fabric';
const regex = new RegExp(`\\s*${varname}\\s*=\\s*(.*)\\s*?,\\s*`, 'gm');
console.log(regex.source, varname)
const result = regex.exec(raw);
return result ? result[1].trim() : null;
}
Expand Down

0 comments on commit a1af13c

Please sign in to comment.