mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +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.
|
* @returns {string} Returns the escaped string.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.escapeRegExp('[lodash](http://lodash.com)');
|
* _.escapeRegExp('[lodash](http://lodash.com/)');
|
||||||
* // => '\[lodash\]\(http://lodash\.com\)'
|
* // => '\[lodash\]\(http://lodash\.com/\)'
|
||||||
*/
|
*/
|
||||||
function escapeRegExp(string) {
|
function escapeRegExp(string) {
|
||||||
string = string == null ? '' : String(string);
|
string = string == null ? '' : String(string);
|
||||||
|
|||||||
Reference in New Issue
Block a user