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/postcss/lib/map-generator.js

    rd565449 r0c6b92a  
    11'use strict'
    22
     3let { dirname, relative, resolve, sep } = require('path')
    34let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
    4 let { dirname, relative, resolve, sep } = require('path')
    55let { pathToFileURL } = require('url')
    66
     
    7171        node = this.root.nodes[i]
    7272        if (node.type !== 'comment') continue
    73         if (node.text.indexOf('# sourceMappingURL=') === 0) {
     73        if (node.text.startsWith('# sourceMappingURL=')) {
    7474          this.root.removeChild(i)
    7575        }
    7676      }
    7777    } else if (this.css) {
    78       this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '')
     78      this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, '')
    7979    }
    8080  }
     
    144144    }
    145145
    146     let lines, last
     146    let last, lines
    147147    this.stringify(this.root, (str, node, type) => {
    148148      this.css += str
Note: See TracChangeset for help on using the changeset viewer.