download
raw
463 Bytes
let utils = require('./utils')
class OldValue {
constructor(unprefixed, prefixed, string, regexp) {
this.unprefixed = unprefixed
this.prefixed = prefixed
this.string = string || prefixed
this.regexp = regexp || utils.regexp(prefixed)
}
/**
* Check, that value contain old value
*/
check(value) {
if (value.includes(this.string)) {
return !!value.match(this.regexp)
}
return false
}
}
module.exports = OldValue

Xet Storage Details

Size:
463 Bytes
·
Xet hash:
1c2c7c59051aef3bc94197178b4e1c0e0b7a9b9aacf517ee0e3aab7801962b56

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.