Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/metras.v32.1/node_modules/postcss-less/lib/nodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/metras.v32.1/node_modules/postcss-less/lib/nodes/variable.js
/* eslint no-param-reassign: off */

const afterPattern = /:$/;
const beforePattern = /^:(\s+)?/;
// const bracketsPattern = /\{/;

module.exports = (node) => {
  const { name, params = '' } = node;

  // situations like @page :last { color: red } should default to the built-in AtRule
  // LESS variables are @name : value; < note that for them to be valid LESS vars, they must end in
  // a semicolon.

  if (node.name.slice(-1) !== ':') {
    return;
  }

  if (afterPattern.test(name)) {
    const [match] = name.match(afterPattern);

    node.name = name.replace(match, '');
    node.raws.afterName = match + (node.raws.afterName || '');
    node.variable = true;
    node.value = node.params;
  }

  if (beforePattern.test(params)) {
    const [match] = params.match(beforePattern);

    node.value = params.replace(match, '');
    node.raws.afterName = (node.raws.afterName || '') + match;
    node.variable = true;
  }
};

Spamworldpro Mini