8000 Update whitespace removal for `delete` operators in pre-compile.js. · lodash/lodash@bb553b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb553b8

Browse files
committed
Update whitespace removal for delete operators in pre-compile.js.
Former-commit-id: 8dddeed54f8f13268f777d829ba52363706b9f4a
1 parent 21eda2a commit bb553b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/pre-compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
// remove whitespace from string literals
278278
source = source.replace(/'(?:(?=(\\?))\1.)*?'/g, function(string) {
279279
// avoids removing the '\n' of the `stringEscapes` object
280-
return string.replace(/\[object |else if|function | in |return\s+[\w']|throw |typeof |use strict|var |@ |'\\n'|\\\\n|\\n|\s+/g, function(match) {
280+
return string.replace(/\[object |delete |else if|function | in |return\s+[\w']|throw |typeof |use strict|var |@ |'\\n'|\\\\n|\\n|\s+/g, function(match) {
281281
return match == false || match == '\\n' ? '' : match;
282282
});
283283
});

0 commit comments

Comments
 (0)
0