ЛZ
var request = indexedDB.open("MyTestDatabase");
request.onerror = function(event) {
alert("Почему Вы не позволяете моему веб-приложению использовать IndexedDB?!");
};
request.onsuccess = function(event) {
db = event.target.result;
};
Size: a a a
ЛZ
DM
DM
test()
двигать lastIndex
ЛZ
ЛZ
ЛZ
VC
for (const candidate of searchEnginesSettings) {
const regex = new RegExp(candidate.activatePattern, 'gi')
const match = regex.test(currentUrl)
if (match && candidate.active) {
return setKeysSearchEngines(candidate, extOptions)
}
}
ЛZ
DM
for (const candidate of searchEnginesSettings) {
const regex = new RegExp(candidate.activatePattern, 'gi')
const match = regex.test(currentUrl)
if (match && candidate.active) {
return setKeysSearchEngines(candidate, extOptions)
}
}
ЛZ
for (const candidate of searchEnginesSettings) {
const regex = new RegExp(candidate.activatePattern, 'gi')
const match = regex.test(currentUrl)
if (match && candidate.active) {
return setKeysSearchEngines(candidate, extOptions)
}
}
DM
VC
ЛZ
DM
regexp.test()
DM
DM
DM
regexp.test()
быстрее, чем string.match()
DM
currentURL.test()
придется сначала убедиться, что currentURL
- это строка, а для regexp.test()
это в принципе не обязательно