securityos/node_modules/es-abstract/helpers/isLineTerminator.js

8 lines
188 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
// https://262.ecma-international.org/5.1/#sec-7.3
module.exports = function isLineTerminator(c) {
return c === '\n' || c === '\r' || c === '\u2028' || c === '\u2029';
};