We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 053cc70 commit 441e837Copy full SHA for 441e837
src/data/DeviceModels.js
@@ -280,14 +280,14 @@ class DeviceModels {
280
}
281
282
/**
283
- * Make the pattern compatible with JavaScript
+ * Make the pattern compatible with JavaScript and transform it to string
284
*
285
* @param {string} pattern
286
287
* @return {string}
288
*/
289
static cleanUpPattern(pattern) {
290
- return pattern.replace('(?i)', '').replace('\\-', '-');
+ return `${pattern}`.replace('(?i)', '').replace('\\-', '-');
291
292
293
0 commit comments