prx-podagent
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -48,3 +48,7 @@ const fs = require('fs'); | ||
DB = agents.map(agent => { | ||
agent.regex = new RegExp(agent.regex); | ||
if (agent.caseInsensitive) { | ||
agent.regex = new RegExp(agent.regex, 'i'); | ||
} else { | ||
agent.regex = new RegExp(agent.regex); | ||
} | ||
TAGS.forEach(t => { | ||
@@ -51,0 +55,0 @@ agent[`${t}Id`] = parseInt(agent[t]) || null; |
{ | ||
"name": "prx-podagent", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "User-agent parser for common podcast clients", | ||
@@ -8,2 +8,3 @@ "main": "index.js", | ||
"test": "mocha test/*-test.js", | ||
"unknowns": "mocha test/unknowns.js", | ||
"lock": "node lock.js", | ||
@@ -10,0 +11,0 @@ "prepublish": "node lock.js" |
Sorry, the diff of this file is not supported yet
448494
9
62