Skip to content

Commit

Permalink
release(logcat): v0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Oct 30, 2024
1 parent ee89858 commit 877ece5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
},
"logcat": {
"react": true,
"version": "0.3.3",
"version": "0.3.4",
"style": true,
"icon": false,
"test": true,
Expand Down
11 changes: 7 additions & 4 deletions src/logcat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import escape from 'licia/escape'
import h from 'licia/h'
import types from 'licia/types'
import throttle from 'licia/throttle'
import trim from 'licia/trim'
import isDate from 'licia/isDate'
import each from 'licia/each'
import strHash from 'licia/strHash'
Expand Down Expand Up @@ -190,14 +191,16 @@ export default class Logcat extends Component<IOptions> {
return false
}

if (filter.package) {
if (!contain(lowerCase(entry.package), lowerCase(filter.package))) {
const pkg = trim(filter.package || '')
if (pkg) {
if (!contain(lowerCase(entry.package), lowerCase(pkg))) {
return false
}
}

if (filter.tag) {
if (!contain(lowerCase(entry.tag), lowerCase(filter.tag))) {
const tag = trim(filter.tag || '')
if (tag) {
if (!contain(lowerCase(entry.tag), lowerCase(tag))) {
return false
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/logcat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logcat",
"version": "0.3.3",
"version": "0.3.4",
"description": "Android logcat viewer",
"luna": {
"react": true
Expand Down

0 comments on commit 877ece5

Please sign in to comment.