Browse Source
Merge pull request #4587 from CommanderRoot/rm-deprecated-substr
Replace deprecated String.prototype.substr()
master
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
5 additions and
5 deletions
-
packages/bbui/src/Stores/notifications.js
-
packages/bbui/src/Tabs/Tabs.svelte
-
packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte
-
packages/builder/src/pages/builder/portal/manage/users/_components/ForceResetPasswordModal.svelte
-
packages/server/scripts/docs/toSwagger.js
|
|
|
@ -60,7 +60,7 @@ export const createNotificationStore = () => { |
|
|
|
} |
|
|
|
|
|
|
|
function id() { |
|
|
|
return "_" + Math.random().toString(36).substr(2, 9) |
|
|
|
return "_" + Math.random().toString(36).slice(2, 9) |
|
|
|
} |
|
|
|
|
|
|
|
export const notifications = createNotificationStore() |
|
|
|
|
|
|
|
@ -68,7 +68,7 @@ |
|
|
|
}) |
|
|
|
|
|
|
|
function id() { |
|
|
|
return "_" + Math.random().toString(36).substr(2, 9) |
|
|
|
return "_" + Math.random().toString(36).slice(2, 9) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
@ -11,7 +11,7 @@ |
|
|
|
import { users } from "stores/portal" |
|
|
|
|
|
|
|
const [email, error, touched] = createValidationStore("", emailValidator) |
|
|
|
const password = Math.random().toString(36).substr(2, 20) |
|
|
|
const password = Math.random().toString(36).slice(2, 20) |
|
|
|
let builder = false, |
|
|
|
admin = false |
|
|
|
|
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ |
|
|
|
|
|
|
|
export let user |
|
|
|
|
|
|
|
const password = Math.random().toString(36).substr(2, 20) |
|
|
|
const password = Math.random().toString(36).slice(2, 20) |
|
|
|
|
|
|
|
async function resetPassword() { |
|
|
|
try { |
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ function extractPaths(apidocJson) { |
|
|
|
// Surrounds URL parameters with curly brackets -> :email with {email}
|
|
|
|
let pathKeys = [] |
|
|
|
for (let j = 1; j < matches.length; j++) { |
|
|
|
let key = matches[j].substr(1) |
|
|
|
let key = matches[j].slice(1) |
|
|
|
url = url.replace(matches[j], "{" + key + "}") |
|
|
|
pathKeys.push(key) |
|
|
|
} |
|
|
|
|