Changeset 0c6b92a for imaps-frontend/node_modules/ignore/index.js
- Timestamp:
- 12/12/24 17:06:06 (5 weeks ago)
- Branches:
- main
- Parents:
- d565449
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/ignore/index.js
rd565449 r0c6b92a 80 80 // (a\ ) -> (a ) 81 81 // (a ) -> (a) 82 // (a ) -> (a) 82 83 // (a \ ) -> (a ) 83 /\\?\s+$/, 84 match => match.indexOf('\\') === 0 85 ? SPACE 86 : EMPTY 84 /((?:\\\\)*?)(\\?\s+)$/, 85 (_, m1, m2) => m1 + ( 86 m2.indexOf('\\') === 0 87 ? SPACE 88 : EMPTY 89 ) 87 90 ], 88 91 89 92 // replace (\ ) with ' ' 90 [ 91 /\\\s/g, 92 () => SPACE 93 // (\ ) -> ' ' 94 // (\\ ) -> '\\ ' 95 // (\\\ ) -> '\\ ' 96 [ 97 /(\\+?)\s/g, 98 (_, m1) => { 99 const {length} = m1 100 return m1.slice(0, length - length % 2) + SPACE 101 } 93 102 ], 94 103 … … 318 327 if (!source) { 319 328 source = REPLACERS.reduce( 320 (prev, current) => prev.replace(current[0], current[1].bind(pattern)), 329 (prev, [matcher, replacer]) => 330 prev.replace(matcher, replacer.bind(pattern)), 321 331 pattern 322 332 )
Note:
See TracChangeset
for help on using the changeset viewer.