From 8d1290860ff1b251cb5cd828c4e349aca9d5cfe5 Mon Sep 17 00:00:00 2001 From: John Foerch Date: Wed, 15 Feb 2012 23:23:29 -0500 Subject: [PATCH] string.js: style, whitespace --- modules/string.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/string.js b/modules/string.js index 778f4d9..9027cad 100644 --- a/modules/string.js +++ b/modules/string.js @@ -22,13 +22,19 @@ function shell_quote (str) { return s; } -/* Like perl's quotemeta. Backslash all non-alphanumerics. */ + +/** + * Like perl's quotemeta. Backslash all non-alphanumerics. + */ function quotemeta (str) { return str.replace(/([^a-zA-Z0-9])/g, "\\$1"); } -/* Given a list of choices (strings), return a regexp which matches any - of them*/ + +/** + * Given a list of choices (strings), return a regexp which matches any + * of them + */ function choice_regexp (choices) { return ("(?:" + choices.map(quotemeta).join("|") + ")"); } -- 2.11.4.GIT