Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
259 B
JavaScript
Executable File
15 lines
259 B
JavaScript
Executable File
var reg = /[\'\"]/
|
|
|
|
module.exports = function unquote(str) {
|
|
if (!str) {
|
|
return ''
|
|
}
|
|
if (reg.test(str.charAt(0))) {
|
|
str = str.substr(1)
|
|
}
|
|
if (reg.test(str.charAt(str.length - 1))) {
|
|
str = str.substr(0, str.length - 1)
|
|
}
|
|
return str
|
|
}
|