mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
LICENSE for quotemeta, add comment about duplication
This commit is contained in:
@@ -288,6 +288,7 @@ shell-quote: https://github.com/substack/node-shell-quote
|
||||
deep-equal: https://github.com/substack/node-deep-equal
|
||||
editor: https://github.com/substack/node-editor
|
||||
minimist: https://github.com/substack/node-minimist
|
||||
quotemeta: https://github.com/substack/quotemeta
|
||||
----------
|
||||
|
||||
Copyright 2010, 2011, 2012, 2013 James Halliday (mail@substack.net)
|
||||
|
||||
@@ -228,6 +228,7 @@ var pendingSequences = [];
|
||||
|
||||
// Like Perl's quotemeta: quotes all regexp metacharacters. See
|
||||
// https://github.com/substack/quotemeta/blob/master/index.js
|
||||
// XXX this is duplicated with accounts_server.js
|
||||
var quotemeta = function (str) {
|
||||
return String(str).replace(/(\W)/g, '\\$1');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user