Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1860d3

Browse files
committed
Optimize escape() by not needlessly escaping the / character
Ref. #18. Former-commit-id: 82a29019daa15c83cb2159685ca5d575265cd902
1 parent e0fba5c commit c1860d3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lodash.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,8 +2746,7 @@
27462746
.replace(/&/g, '&')
27472747
.replace(/</g, '&lt;')
27482748
.replace(/"/g, '&quot;')
2749-
.replace(/'/g, '&#x27;')
2750-
.replace(/\//g,'&#x2F;');
2749+
.replace(/'/g, '&#x27;');
27512750
}
27522751

27532752
/**

lodash.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)