-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate CoffeeScript to JavaScript #1441
Conversation
c85003b
to
2fa5853
Compare
do you want help with this? how are you converting coffee files to javascript? |
Help is welcome, I'm not actively working on this at the moment.
See #1441 (comment) |
assets/javascripts/app/app.js
Outdated
return ( | ||
file && | ||
file.indexOf("devdocs") !== -1 && | ||
file.indexOf(".js") === file.length - 3 |
Check failure
Code scanning / CodeQL
Incorrect suffix check
assets/javascripts/lib/page.js
Outdated
path = path | ||
.replace(/\/\(/g, "(?:/") | ||
.replace( | ||
/(\/)?(\.)?:(\w+)(?:(\(.*?\)))?(\?)?/g, | ||
function (_, slash = "", format = "", key, capture, optional) { | ||
var str; | ||
keys.push({ | ||
name: key, | ||
optional: !!optional, | ||
}); | ||
str = optional ? "" : slash; | ||
str += "(?:"; | ||
if (optional) { | ||
str += slash; | ||
} | ||
str += format; | ||
str += capture || (format ? "([^/.]+?)" : "([^/]+?)"); | ||
str += ")"; | ||
if (optional) { | ||
str += optional; | ||
} | ||
return str; | ||
} | ||
) | ||
.replace(/([\/.])/g, "\\$1") |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding
Migration seems to be successful. Let's give it a try. I'll keep an eye on https://devdocs.sentry.io/issues/ to spot and fix potential bugs... |
Sentry seems pretty calm. Nice work, @simon04! |
I'm migrating one after another CoffeeScript file to JavaScript using https://decaffeinate-project.org/repl/.
Fixes #1197.