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/previous-map.js

    rd565449 r0c6b92a  
    11'use strict'
    22
    3 let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
    43let { existsSync, readFileSync } = require('fs')
    54let { dirname, join } = require('path')
     5let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
    66
    77function fromBase64(str) {
     
    4242    let uri = /^data:application\/json,/
    4343
    44     if (charsetUri.test(text) || uri.test(text)) {
    45       return decodeURIComponent(text.substr(RegExp.lastMatch.length))
     44    let uriMatch = text.match(charsetUri) || text.match(uri)
     45    if (uriMatch) {
     46      return decodeURIComponent(text.substr(uriMatch[0].length))
    4647    }
    4748
    48     if (baseCharsetUri.test(text) || baseUri.test(text)) {
    49       return fromBase64(text.substr(RegExp.lastMatch.length))
     49    let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri)
     50    if (baseUriMatch) {
     51      return fromBase64(text.substr(baseUriMatch[0].length))
    5052    }
    5153
     
    6870
    6971  loadAnnotation(css) {
    70     let comments = css.match(/\/\*\s*# sourceMappingURL=/gm)
     72    let comments = css.match(/\/\*\s*# sourceMappingURL=/g)
    7173    if (!comments) return
    7274
Note: See TracChangeset for help on using the changeset viewer.