mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Fixed regression bug with combination of splitStrings and renameProperties option
https://github.com/javascript-obfuscator/javascript-obfuscator/issues/729
This commit is contained in:
+6
-1
@@ -294,7 +294,12 @@ describe('RenamePropertiesTransformer', () => {
|
||||
});
|
||||
|
||||
describe('Variant #8: integration with `splitStrings` option', () => {
|
||||
const propertyRegExp: RegExp = /'a': *'long' *\+ *'Prop' *\+ *'erty' *\+ *'Valu' *\+ *'e'/;
|
||||
const propertyRegExp: RegExp = new RegExp(
|
||||
'const foo *= *{' +
|
||||
'\'a\': *\'long\' *\\+ *\'Prop\' *\\+ *\'erty\' *\\+ *\'Valu\' *\\+ *\'e\'' +
|
||||
'};' +
|
||||
'foo\\[\'a\'];'
|
||||
);
|
||||
|
||||
let obfuscatedCode: string;
|
||||
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
const foo = {
|
||||
longPropertyName: 'longPropertyValue'
|
||||
};
|
||||
foo.longPropertyName;
|
||||
|
||||
Reference in New Issue
Block a user