Skip to content

Commit 430f107

Browse files
committed
Tidy up
1 parent 669826a commit 430f107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/textParsers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ var parseByteA = function(val) {
130130
out += val[i]
131131
++i
132132
}else{
133-
if(val.substring(i+1, i+4).match(/([0-7]){3}/)){
134-
out += String.fromCharCode(parseInt(val.substring(i+1,i+4),8))
133+
if(val.substr(i+1,3).match(/[0-7]{3}/)){
134+
out += String.fromCharCode(parseInt(val.substr(i+1,3),8))
135135
i += 4
136136
}else{
137137
backslashes = 1

0 commit comments

Comments
 (0)