You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
286 B
Plaintext
13 lines
286 B
Plaintext
4 months ago
|
var bem = require('./bem.wxs').bem;
|
||
|
var memoize = require('./memoize.wxs').memoize;
|
||
|
|
||
|
function isSrc(url) {
|
||
|
return url.indexOf('http') === 0 || url.indexOf('data:image') === 0 || url.indexOf('//') === 0;
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
bem: memoize(bem),
|
||
|
isSrc: isSrc,
|
||
|
memoize: memoize
|
||
|
};
|