BVB Source Codes

reactide Show whitespace.js Source code

Return Download reactide: download whitespace.js Source code - Download reactide Source code - Type:.js
  1. // Matches a whole line break (where CRLF is considered a single
  2. // line break). Used to count lines.
  3.  
  4. export const lineBreak = /\r\n?|\n|\u2028|\u2029/
  5. export const lineBreakG = new RegExp(lineBreak.source, "g")
  6.  
  7. export function isNewLine(code) {
  8.   return code === 10 || code === 13 || code === 0x2028 || code == 0x2029
  9. }
  10.  
  11. export const nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/
  12.  
  13. export const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g
  14.  
downloadwhitespace.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top