Skip to content

Commit 674a514

Browse files
authored
Match " and '
1 parent 8d6502b commit 674a514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function parseRubyEngineAndVersion(rubyVersion) {
135135
} else if (rubyVersion === 'mise.toml') { // Read from mise.toml
136136
const toolVersions = fs.readFileSync('mise.toml', 'utf8').trim()
137137
const rubyLine = toolVersions.split(/\r?\n/).filter(e => /^ruby\s=\s/.test(e))[0]
138-
rubyVersion = rubyLine.match(/^ruby\s=\s"(.+)"$/)[1]
138+
rubyVersion = rubyLine.match(/^ruby\s=\s['"](.+)['"]$/)[1]
139139
console.log(`Using ${rubyVersion} as input from file mise.toml`)
140140
}
141141

0 commit comments

Comments
 (0)