mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/75
Author: @nickpalenchar
Created: 8/28/2019
Status: ✅ Merged
Merged: 8/28/2019
Merged by: @liyasthomas
Base:
master← Head:master📝 Commits (1)
1a38f51fixes #74 fallback for findEntryStatus when match is missing or otherwise invalid📊 Changes
2 files changed (+11 additions, -0 deletions)
View changed files
📝
assets/css/styles.scss(+4 -0)📝
pages/index.vue(+7 -0)📄 Description
…wise invalid
Small change with big implication!
As mentoned in #74, it would be best for both old history (which has no status number) and new history to be preserved.
findEntryStatuswhich in turn callsfindStatusGroup, calls theArray.prototype.findwhich will return undefined if the callback function provided does not return true on any item. Since the callback function uses a RegEx.prototype.test on thestatusCategories's.statusCodeRegexto determine a match, I added a final object with a.statusCodeRegexof/.*/to match anything. Think of it as a default in a switch statement, since all other objects before it have to not match before hitting it.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.