Browse Source

IMPRO,MINOR,FIX: changed replacement order of empty string characters

to replace those that are a combination of two first.
Otherwise the combination would be replaced twice.
dev-feat-component_preview
chris 2 months ago
parent
commit
ab4d39d55d
  1. 3
      src/base/extStore.js

3
src/base/extStore.js

@ -54,9 +54,10 @@ function clearFunctionDeclarationText(func) {
}
return shrinkEmptyStrings(
func.toString()
.replaceAll('\n', ' ')
.replaceAll('\r\n', ' ')
.replaceAll('\n\r', ' ')
.replaceAll('\n', ' ')
.replaceAll('\r', ' ')
);
}

Loading…
Cancel
Save