@rotorsoft/act-diagram 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -0
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -676,9 +676,9 @@ function resolve(imp, fromPath, byKey) {
|
|
|
676
676
|
// src/client/lib/evaluate.ts
|
|
677
677
|
var stripNonCode = (src, level = "full") => {
|
|
678
678
|
const blank = (m) => m.replace(/[^\n]/g, " ");
|
|
679
|
-
let result = src.replace(/\/\/[^\n]*/g, blank).replace(/\/\*[\s\S]*?\*\//g, blank).replace(/`(?:\\[\s\S]|[
|
|
679
|
+
let result = src.replace(/\/\/[^\n]*/g, blank).replace(/\/\*[\s\S]*?\*\//g, blank).replace(/`(?:\\[\s\S]|[^`\\])*`/g, blank);
|
|
680
680
|
if (level === "full") {
|
|
681
|
-
result = result.replace(/"(?:\\[\s\S]|[^"])*"/g, blank).replace(/'(?:\\[\s\S]|[^'])*'/g, blank);
|
|
681
|
+
result = result.replace(/"(?:\\[\s\S]|[^"\\])*"/g, blank).replace(/'(?:\\[\s\S]|[^'\\])*'/g, blank);
|
|
682
682
|
}
|
|
683
683
|
return result;
|
|
684
684
|
};
|