mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-06 16:12:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
18
web/node_modules/html-minifier-terser/src/utils.js
generated
vendored
Normal file
18
web/node_modules/html-minifier-terser/src/utils.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
function createMap(values, ignoreCase) {
|
||||
var map = {};
|
||||
values.forEach(function(value) {
|
||||
map[value] = 1;
|
||||
});
|
||||
return ignoreCase ? function(value) {
|
||||
return map[value.toLowerCase()] === 1;
|
||||
} : function(value) {
|
||||
return map[value] === 1;
|
||||
};
|
||||
}
|
||||
|
||||
exports.createMap = createMap;
|
||||
exports.createMapFromString = function(values, ignoreCase) {
|
||||
return createMap(values.split(/,/), ignoreCase);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue