mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
16 lines
360 B
JavaScript
16 lines
360 B
JavaScript
|
var sameVendorPrefixes = require('./vendor-prefixes').same;
|
||
|
|
||
|
function understandable(validator, value1, value2, _position, isPaired) {
|
||
|
if (!sameVendorPrefixes(value1, value2)) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
if (isPaired && validator.isVariable(value1) !== validator.isVariable(value2)) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
module.exports = understandable;
|