|
@@ -210,7 +210,7 @@ export function generateRoomWithoutSeparator() {
|
210
|
210
|
// that names from patterns with more options).
|
211
|
211
|
let name = randomElement(PATTERNS);
|
212
|
212
|
|
213
|
|
- while (hasTemplate(name)) {
|
|
213
|
+ while (_hasTemplate(name)) {
|
214
|
214
|
for (const template in CATEGORIES) { // eslint-disable-line guard-for-in
|
215
|
215
|
const word = randomElement(CATEGORIES[template]);
|
216
|
216
|
|
|
@@ -226,10 +226,11 @@ export function generateRoomWithoutSeparator() {
|
226
|
226
|
* templates/categories.
|
227
|
227
|
*
|
228
|
228
|
* @param {string} s - String containing categories.
|
|
229
|
+ * @private
|
229
|
230
|
* @returns {boolean} True if the specified string contains at least one of the
|
230
|
231
|
* templates/categories; otherwise, false.
|
231
|
232
|
*/
|
232
|
|
-function hasTemplate(s) {
|
|
233
|
+function _hasTemplate(s) {
|
233
|
234
|
for (const template in CATEGORIES) {
|
234
|
235
|
if (s.indexOf(template) >= 0) {
|
235
|
236
|
return true;
|