Skip to content

Commit d1fa006

Browse files
committed
Use CharacterCode enum
1 parent 2f13222 commit d1fa006

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/services/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,11 +1351,11 @@ namespace ts {
13511351
return position;
13521352

13531353
function AdvancePastLineBreak() {
1354-
if (text.charCodeAt(position) === 0xD) {
1354+
if (text.charCodeAt(position) === CharacterCodes.carriageReturn) {
13551355
position++;
13561356
}
13571357

1358-
if (text.charCodeAt(position) === 0xA) {
1358+
if (text.charCodeAt(position) === CharacterCodes.lineFeed) {
13591359
position++;
13601360
}
13611361
}

0 commit comments

Comments
 (0)