$
This commit is contained in:
10
node_modules/@riotjs/compiler/src/utils/split-string-by-EOL.js
generated
vendored
Normal file
10
node_modules/@riotjs/compiler/src/utils/split-string-by-EOL.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
const LINES_RE = /\r\n?|\n/g
|
||||
|
||||
/**
|
||||
* Split a string into a rows array generated from its EOL matches
|
||||
* @param { string } string [description]
|
||||
* @returns { Array } array containing all the string rows
|
||||
*/
|
||||
export default function splitStringByEOL(string) {
|
||||
return string.split(LINES_RE)
|
||||
}
|
Reference in New Issue
Block a user