We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90be115 commit acfd26aCopy full SHA for acfd26a
index.js
@@ -130,7 +130,7 @@ function parseRubyEngineAndVersion(rubyVersion) {
130
console.log(`Using ${rubyVersion} as input from file .tool-versions`)
131
} else if (rubyVersion === 'mise.toml') { // Read from mise.toml
132
const toolVersions = fs.readFileSync('mise.toml', 'utf8').trim()
133
- const regexp = /^ruby\s*=\s*['"](.+)['"]$/
+ const regexp = /^\s*ruby\s*=\s*['"]([^'"]+)['"](?:\s*#.*)?$/
134
const rubyLine = toolVersions.split(/\r?\n/).filter(e => regexp.test(e))[0]
135
rubyVersion = rubyLine.match(regexp)[1]
136
console.log(`Using ${rubyVersion} as input from file mise.toml`)
0 commit comments