Passed
Push — master ( 67133e...c59620 )
by Huu-Phat
01:48 queued 10s
created

cms/src/core/utils/misc.js   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 6
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
mnd 1
bc 1
fnc 1
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
bpm 1
cpm 2
noi 0
c 0
b 0
f 0
1 3
export const isPathMatchUrl = (pathName, url) => {
2 20
  if (url === '/' || pathName === '/') {
3 14
    return pathName === url
4
  }
5 6
  return pathName.includes(url)
6
}
7