Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/ignore/index.js

    rd565449 r0c6b92a  
    8080    // (a\ ) -> (a )
    8181    // (a  ) -> (a)
     82    // (a ) -> (a)
    8283    // (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    )
    8790  ],
    8891
    8992  // 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    }
    93102  ],
    94103
     
    318327  if (!source) {
    319328    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)),
    321331      pattern
    322332    )
Note: See TracChangeset for help on using the changeset viewer.