mirror of
https://github.com/discourse/discourse.git
synced 2025-10-03 17:21:20 +08:00
DEV: Extensively use includes()
(#17541)
Also, the change in insert-hyperlink (from `this.linkUrl.indexOf("http") === -1` to `!this.linkUrl.startsWith("http")`) was intentional fix: we don't want to prevent users from looking up topics with http in their titles.
This commit is contained in:
parent
5f7163b5bb
commit
057d6b406d
55 changed files with 95 additions and 108 deletions
|
@ -159,7 +159,7 @@ async function runAllTests() {
|
|||
expression: `(${qunit_script})();`,
|
||||
});
|
||||
|
||||
if (args[0].indexOf("report_requests=1") > -1) {
|
||||
if (args[0].includes("report_requests=1")) {
|
||||
await Runtime.evaluate({
|
||||
expression: "QUnit.config.logAllRequests = true",
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue