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/stylis/src/Parser.js

    rd565449 r0c6b92a  
    11import {COMMENT, RULESET, DECLARATION} from './Enum.js'
    22import {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'
    3 import {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'
     3import {node, char, prev, next, peek, token, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'
    44
    55/**
     
    6666                                        case 42: case 47:
    6767                                                append(comment(commenter(next(), caret()), root, parent, declarations), declarations)
     68                                                if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters) && substr(characters, -1, void 0) !== ' ') characters += ' '
    6869                                                break
    6970                                        default:
     
    8182                                        // ;
    8283                                        case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '')
    83                                                 if (property > 0 && (strlen(characters) - length))
     84                                                if (property > 0 && (strlen(characters) - length || (variable === 0 && previous === 47)))
    8485                                                        append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations)
    8586                                                break
Note: See TracChangeset for help on using the changeset viewer.