infrastructure: create monorepo structure with apps/angular, apps/react, e2e directories

This commit is contained in:
gnezim
2026-04-05 18:53:38 +03:00
parent c012c7ebe8
commit 382d8c453a
34399 changed files with 18 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
'use strict';
function parseString(str) {
try {
if (str[0] === '"') {
return JSON.parse(str);
}
if (str[0] === "'" && str.substr(str.length - 1) === "'") {
return parseString(
str
.replace(/\\.|"/g, (x) => (x === '"' ? '\\"' : x))
.replace(/^'|'$/g, '"')
);
}
return JSON.parse('"' + str + '"');
} catch (e) {
return str;
}
}
module.exports = parseString;