Sha256: fe752f0f0586735ff701a8050fafb9910d6e8fbeca022edc1f1a9478a8a68fe9
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
module.exports.readVersion = function (contents) { const regex = /valorant_daily_store \((\d+\.\d+\.\d+)\)/g const result = contents.matchAll(regex) return [...result][0][1] } module.exports.writeVersion = function (contents, version) { const newContent = contents.replace( /valorant_daily_store \(\d+\.\d+\.\d+\)/, `valorant_daily_store (${version})` ) return newContent }
Version data entries
4 entries across 4 versions & 1 rubygems