src/barcodes/CODE128/CODE128C.js   A
last analyzed

Size

Lines of Code 14

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
nc 1
dl 0
loc 14
rs 10
c 0
b 0
f 0
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A CODE128C.js ➔ ??? 0 3 1
1
import CODE128 from './CODE128.js';
2
import { C_START_CHAR, C_CHARS } from './constants';
3
4
class CODE128C extends CODE128 {
5
	constructor(string, options) {
6
		super(C_START_CHAR + string, options);
7
	}
8
9
	valid() {
10
		return (new RegExp(`^${C_CHARS}+$`)).test(this.data);
11
	}
12
}
13
14
export default CODE128C;
15