relaxed sourceCode test
This commit is contained in:
parent
f250f9c233
commit
8d806d7588
|
@ -129,7 +129,7 @@ async function importFromString(jsonString) {
|
||||||
typeof item !== 'object' || (
|
typeof item !== 'object' || (
|
||||||
isEmptyObj(item.usercssData)
|
isEmptyObj(item.usercssData)
|
||||||
? !styleJSONseemsValid(item)
|
? !styleJSONseemsValid(item)
|
||||||
: !/==userstyle==/i.test(item.sourceCode)
|
: !item.sourceCode || typeof item.sourceCode !== 'string'
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
stats.invalid.names.push(`#${index}: ${limitString(item && item.name || '')}`);
|
stats.invalid.names.push(`#${index}: ${limitString(item && item.name || '')}`);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user