mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Add trailing slash to _.escapeRegExp doc example. [ci skip]
This commit is contained in:
@@ -8139,8 +8139,8 @@
|
||||
* @returns {string} Returns the escaped string.
|
||||
* @example
|
||||
*
|
||||
* _.escapeRegExp('[lodash](http://lodash.com)');
|
||||
* // => '\[lodash\]\(http://lodash\.com\)'
|
||||
* _.escapeRegExp('[lodash](http://lodash.com/)');
|
||||
* // => '\[lodash\]\(http://lodash\.com/\)'
|
||||
*/
|
||||
function escapeRegExp(string) {
|
||||
string = string == null ? '' : String(string);
|
||||
|
||||
Reference in New Issue
Block a user